question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: Pooch fails to download on CircleCI

See original GitHub issue

Looks like we have a problem, presumably from #9742:

https://app.circleci.com/pipelines/github/mne-tools/mne-python/10239/workflows/959aeb3e-ddbd-45a8-9b11-d8915f6ae1f6/jobs/34623

Downloading file 'hf_sef_evoked.tar.gz' from 'https://zenodo.org/record/3523071/files/hf_sef_evoked.tar.gz' to '/home/circleci/mne_data'.
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 766M/766M [00:00<00:00, 3.35TB/s]
Extracting 'hf_sef/MEG' from '/home/circleci/mne_data/hf_sef_evoked.tar.gz' to '/home/circleci/mne_data'
Traceback (most recent call last):
  File "/home/circleci/.local/lib/python3.8/site-packages/pooch/processors.py", line 219, in _extract_file
    output.write(data_file.read())
AttributeError: 'NoneType' object has no attribute 'read'

@adam2392 I can replicate locally with:

$ python -c "import mne; mne.datasets.hf_sef.data_path(force_update=True, verbose=True)"
Using default location ~/mne_data for HF_SEF...
Downloading file 'hf_sef_evoked.tar.gz' from 'https://zenodo.org/record/3523071/files/hf_sef_evoked.tar.gz' to '/Users/larsoner/mne_data'.
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 766M/766M [00:00<00:00, 1.79TB/s]
Extracting 'hf_sef/MEG' from '/Users/larsoner/mne_data/hf_sef_evoked.tar.gz' to '/Users/larsoner/mne_data'
Traceback (most recent call last):
  File "/Users/larsoner/opt/miniconda3/lib/python3.8/site-packages/pooch/processors.py", line 219, in _extract_file
    output.write(data_file.read())
AttributeError: 'NoneType' object has no attribute 'read'

Can you look into it?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, Sep 23, 2021

Agreed I would just rename. Although really maybe we can live with hf_sef being the new name rather than fight with it. I don’t think that dataset is downloaded super often…

Maybe just fix the names = [params['dataset_name'] for params in dataset_params] bug and then we’ll merge #9763?

0reactions
adam2392commented, Sep 23, 2021

Sounds good. I fixed it now and also renamed the HF_SEF folder to hf_sef.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Downloading workspace error - CircleCI Discuss
I am trying to create a workspace that I want to share between the build and test jobs. build: docker: - image: circleci/node:7.10...
Read more >
Impossible to download artifacts - Feedback & Bug Reports
Hello. I'm trying to download an artifacts from a previous successful build into my current build. Do do so, I'm running:
Read more >
If you expected a workflow to run, check your config contains a ...
I am seeing this error even though my .circleci/config.yml file has a top level workflows entry. Cannot find a job named `build` to...
Read more >
Issues fetching dependencies from Github - CircleCI Discuss
I'm able to install the modules locally, on Google Cloud Build and the URL resolves. error /home/circleci/project/node_modules/electron-prebuiltΒ ...
Read more >
All builds fail with 'Circle Bug' - CircleCI Discuss
Hey Circle dudes,. Since yesterday all of my builds have been failing with the following error message: Looks like we had a bug...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found