Closed kylestanley1313 closed 1 year ago
Hi @kylestanley1313 it looks like it's due to your using an older version of nilearn
. They made a fix a few versions ago to handle the new sklearn
API. Since this is an issue with an upstream dependency of ours rather than an ntools
issue per se, your best bet is upgrading your nilearn
and trying again. Not quite sure how your dependencies got out of sync.
If I install the latest version of nltools
in a new environment or computer (e.g. Google Collab) I can't reproduce this issue and our tests don't seem to catch it either.
That did the trick. Thanks @ejolly!
For what it's worth, I was hitting that issue with nilearn==0.6.2
and the requirements for this project list nilearn>=0.6.0
. Maybe that should be updated?
I also face this error but when i tried this method whenever faced this problem! Anyone can help me to get out from this error.
When importing the
Brain_Data
class fromnltools.data
I get aModuleNotFoundError
forsklearn.linear_model.base
.Steps to Reproduce
Python version: 3.9.7
Package versions:
Current Behavior
Expected Behavior
Successful import
Other Notes
The latest version of
scikit-learn
has aklearn.linear_model._base
module, but not aklearn.linear_model.base
module.