-
Notifications
You must be signed in to change notification settings - Fork 532
Import error for nipype.interfaces.dipy.base
#3411
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
Comments
Please also report upstream to dipy. We need to make these imports more resilient to API breakages. cc @skoudoro |
On closer inspection I realize the bug is actually a bit more complicated. The |
Thank you for pinging me. It is strange that the decorator does not keep the same function signature. I need to improve the new decorator management in Nipype. Otherwise, it will break each time we deprecate an argument. I have a quite busy period but I will have a deeper look into it for sure. |
I suppose I should use |
Summary
import nipype.interfaces.dipy
generates an error for me, with Python 3.9 and 3.8, Dipy 4.12 (latest release) and latest release or current master of nipype.Actual behavior
Running the above import generates the error
TypeError: 'NoneType' object is not iterable
generated fromdipy_to_nipype_interface
at:nipype/nipype/interfaces/dipy/base.py
Line 200 in f756b71
This function is executed during import in
interfaces.dipy.preprocess
. It seems this works correctly for several workflows (LabelsBundles, MedianOtsu, RecoBundles, LocalFiberTrackingPAM, PFTrackingPAM) but crashes for GibbsRingingFlow becausedefault_values
is None.How to replicate the behavior
import nipype.interfaces.dipy
Expected behavior
A working import. This seems an easy fix, if others can reproduce the issue I would be happy to make a PR replacing
nipype/nipype/interfaces/dipy/base.py
Line 192 in f756b71
Platform details:
(Error is the same for Python 3.8)
Execution environment
The text was updated successfully, but these errors were encountered: