# problem with loading data MNE sample

**URL:** https://mne.discourse.group/t/problem-with-loading-data-mne-sample/7269
**Category:** Support & Discussions
**Tags:** data-import
**Created:** [July 20, 2023, 6:47pm UTC](https://mne.discourse.group/t/problem-with-loading-data-mne-sample/7269 "2023-07-20T18:47:54Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![elv](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@elv](https://mne.discourse.group/u/elv)
#### Post date: [July 20, 2023, 6:47pm UTC](https://mne.discourse.group/t/problem-with-loading-data-mne-sample/7269/1 "2023-07-20T18:47:54Z")

</div>

Hello.  
When I run MNE data, in first step(sample\_data), i face with these errors:  
1)TLS/SSL connection has been closed (EOF) (\_ssl.c:997)  
2)HTTPSConnectionPool(host=‘[osf.io](http://osf.io)’, port=443): Max retries exceeded with url: /86qa2/download?version=6 (Caused by SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (EOF) (\_ssl.c:997)’)))  
3)HTTPSConnectionPool(host=‘[osf.io](http://osf.io)’, port=443): Max retries exceeded with url: /86qa2/download?version=6 (Caused by SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (EOF) (\_ssl.c:997)’)))  
could you please help me?

---

<div class="post-metadata">

### Author: ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)
#### Post date: [July 20, 2023, 10:09pm UTC](https://mne.discourse.group/t/problem-with-loading-data-mne-sample/7269/2 "2023-07-20T22:09:27Z")

</div>

this might be because OSF was down for maintenance. Is it still happening?

Other possibilities are that you’re using a proxy or VPN or something, and that is blocking/interfering with the connection somehow (sorry I don’t know a lot about how those things work so I can’t offer concrete advice other than “try again without the VPN or proxy”).

You could also try downloading it directly: [https://osf.io/download/86qa2/](https://osf.io/download/86qa2/) and manually unpacking it into wherever `mne.get_config("MNE_DATASETS_SAMPLE_PATH")` points to. If MNE finds it there, it will skip trying to download it again when you call `mne.datasets.sample.data_path()`

---

<div class="post-metadata">

### Author: ![elv](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@elv](https://mne.discourse.group/u/elv)
#### Post date: [July 22, 2023, 4:09pm UTC](https://mne.discourse.group/t/problem-with-loading-data-mne-sample/7269/3 "2023-07-22T16:09:50Z")

</div>

Thank you for your reply.  
Unfortunately, it was not solved. I work with Macbook Pro, I don’t have any VPN.

---

<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: [July 22, 2023, 5:25pm UTC](https://mne.discourse.group/t/problem-with-loading-data-mne-sample/7269/4 "2023-07-22T17:25:52Z")

</div>

Which macOS version, which Python version, and which MNE-Python version ist that?

---

<div class="post-metadata">

### Author: ![elv](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@elv](https://mne.discourse.group/u/elv)
#### Post date: [July 22, 2023, 5:40pm UTC](https://mne.discourse.group/t/problem-with-loading-data-mne-sample/7269/5 "2023-07-22T17:40:24Z")

</div>

Hello, thanks for replying.  
MacBook Pro, Version 11.3.1  
Python 3.10.10 64-bit  
MNE 1.4.2

---

<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: [July 22, 2023, 6:43pm UTC](https://mne.discourse.group/t/problem-with-loading-data-mne-sample/7269/6 "2023-07-22T18:43:58Z")

</div>

This is really odd; there must be some kind of connectivity issue due to a firewall, proxy, or similar. Are you by any chance in a corporate or university network?

---

<div class="post-metadata">

### Author: ![elv](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@elv](https://mne.discourse.group/u/elv)
#### Post date: [July 24, 2023, 7:34am UTC](https://mne.discourse.group/t/problem-with-loading-data-mne-sample/7269/7 "2023-07-24T07:34:14Z")

</div>

I solve this problem with this code:

sample\_data\_folder = mne.datasets.sample.data\_path(“/Users/Desktop/”,update\_path=False, download=False)  
sample\_data\_raw\_file = (  
sample\_data\_folder / “MNE-sample-data” / “MEG” / “sample” / “sample\_audvis\_filt-0-40\_raw.fif”  
)  
raw = mne.io.read\_raw\_fif(sample\_data\_raw\_file)

and it works in Jupyterlab only. But it does not work in Spyder yet.

---

<div class="post-metadata">

### Author: ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)
#### Post date: [July 25, 2023, 4:30pm UTC](https://mne.discourse.group/t/problem-with-loading-data-mne-sample/7269/8 "2023-07-25T16:30:04Z")

</div>

Mostly just guessing at this point, but another thing to check here would be

```python
python -c "import ssl; print(ssl.OPENSSL_VERSION)"

```

Also if you’re sending lots of requests to OSF simultaneously they might be throttling requests from your IP address.
