Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download nifti from web seems to be broken due to changes to nilearn #443

Open
ljchang opened this issue Aug 6, 2024 · 0 comments
Open
Labels

Comments

@ljchang
Copy link
Member

ljchang commented Aug 6, 2024

nltools version = 0.5.1

mask = Brain_Data('https://neurovault.org/media/images/8423/k50_2mm.nii.gz')

File /opt/anaconda3/envs/mne/lib/python3.11/site-packages/nltools/data/brain_data.py:131, in Brain_Data.__init__(self, data, Y, X, mask, **kwargs)
    129 # Web download
    130 if "http://" in to_load or "https://" in to_load:
--> 131     from nltools.datasets import download_nifti
    133     tmp_dir = os.path.join(tempfile.gettempdir(), str(os.times()[-1]))
    134     os.makedirs(tmp_dir)

File /opt/anaconda3/envs/mne/lib/python3.11/site-packages/nltools/datasets.py:25
     23 import pandas as pd
     24 from nltools.data import Brain_Data
---> 25 from nilearn.datasets.utils import _get_dataset_dir, _fetch_file
     26 from pynv import Client
     28 # Optional dependencies

ImportError: cannot import name '_get_dataset_dir' from 'nilearn.datasets.utils' (/opt/anaconda3/envs/mne/lib/python3.11/site-packages/nilearn/datasets/utils.py)
@ljchang ljchang added the bug label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant