Skip to content

cannot import name '_get_dataset_dir' from 'nilearn.datasets.utils' (/opt/conda/lib/python3.11/site-packages/nilearn/datasets/utils.py) #444

Open
@stebo85

Description

@stebo85

Dear nltools team,

It seems nltools 0.5.1 is currently not working with nilearn 0.10.4 under Python 3.11.6. The error I get when running:

from nltools import *

is

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[30], line 1
----> 1 from nltools import *

File /opt/conda/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/conda/lib/python3.11/site-packages/nilearn/datasets/utils.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions