# I am having an issue with mne : from library.config

**URL:** <https://mne.discourse.group/t/i-am-having-an-issue-with-mne-from-library-config/5515>\
**Category:** Support & Discussions\
**Tags:** preprocessing, eeg, epochs\
**Created:** [September 2, 2022, 10:05am UTC](https://mne.discourse.group/t/i-am-having-an-issue-with-mne-from-library-config/5515 "2022-09-02T10:05:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faidou](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Faidou](https://mne.discourse.group/u/Faidou)\
**Post date:** [September 2, 2022, 10:05am UTC](https://mne.discourse.group/t/i-am-having-an-issue-with-mne-from-library-config/5515/1 "2022-09-02T10:05:24Z")

</div>

- MNE version: using the online version I do not have the install on my computer
- operating system: Windows 10

well I am new here I I have been using MNE for a month now and I have some issues with some libraries . I am working with google colab I have one demo in mne that I am trying to reproduce .my colob is connected to my drive and I have install MNE in colab  
here is the error once I try to run it:  
code : !python 01-anatomy.py  
error:  
Traceback (most recent call last):  
File “01-anatomy.py”, line 31, in   
from library.config import study\_path, subjects\_dir, N\_JOBS, spacing  
File “/content/gdrive/MyDrive/mne-biomag-group-demo-master/scripts/processing/library/config.py”, line 17, in   
user = os.environ[‘USER’]  
File “/usr/lib/python3.7/os.py”, line 681, in **getitem**  
raise KeyError(key) from None  
KeyError: ‘USER’

here is the picture :

 ![Screenshot (13)](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/0/0b168eac602524cc240f915aa3a20098565f64a3.png)

So I need your help please

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [September 4, 2022, 9:43am UTC](https://mne.discourse.group/t/i-am-having-an-issue-with-mne-from-library-config/5515/2 "2022-09-04T09:43:31Z")

</div>

Hello @Faidou and welcome to the forum!

The Biomag Demo scripts apparently expect an environment variable named `USER` to be set, see the `config.py` script:

[http://mne.tools/mne-biomag-group-demo/auto\_scripts/library/config.html#sphx-glr-auto-scripts-library-config-py](http://mne.tools/mne-biomag-group-demo/auto_scripts/library/config.html#sphx-glr-auto-scripts-library-config-py)

You can set it in `config.py` e.g. by adding the line

```python
os.environ['USER'] = 'Faidou'

```

after the `import` statements.

You may also wish to check out the [MNE-BIDS-Pipeline](https://mne.tools/mne-bids-pipeline/) as an alternative that is under active development.

Best wishes,  
Richard

---

<div class="post-metadata">

**Author:** ![Faidou](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@Faidou](https://mne.discourse.group/u/Faidou)\
**Post date:** [September 9, 2022, 4:26am UTC](https://mne.discourse.group/t/i-am-having-an-issue-with-mne-from-library-config/5515/3 "2022-09-09T04:26:50Z")

</div>

It worked  
Thank you Richard
