-
Notifications
You must be signed in to change notification settings - Fork 75
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
Import Error #248
Comments
Which version of nibabel are you using and which version of TractSeg? |
Thank you for your reply. Requirement already satisfied: TractSeg in /home/brain/.local/lib/python3.8/site-packages (2.4) |
Trackvis is no longer supported by nibabel. So you can not use the output format |
Thank you for your suggestion. I tried to change to the recommended version of nibabel and conducted TractSeg module. Then the below showed. $ TractSeg -i Diffusion.nii.gz -o tractseg_output --raw_diffusion_input --output_type tract_segmentation Is there more appropriate way to use TractSeg? |
It seems that dipy does not work well with the older nibabel. I would recommend to not use |
Hi, I am also getting the same error with trackvis. Can I just confirm, in order to not use: trk_legacy output format, but trk or tck, should we modify your plot_utils script to do this? If so how should we go about doing this? I have tried adding the option in my command as below in a bash script:
But it still generates the error: Traceback (most recent call last): Many thanks! |
While this may not be the best solution, you will need to change the source code in order to get the imports to work properly in this file (or the equivalent location for you): /usr/local/lib/python3.10/dist-packages/tractseg/libs/fiber_utils.py change change for the nibabel import error, downgrading to the suggested 3.2.1 version worked for me |
Hi experts.
I started to use TractSeg but am facing the following error. Is there a solution?
$ TractSeg -i Diffusion.nii.gz -o tractseg_output --raw_diffusion_input --output_type tract_segmentation
Traceback (most recent call last):
File "/home/brain/.local/bin/TractSeg", line 20, in
from tractseg.libs import plot_utils
File "/home/brain/.local/lib/python3.8/site-packages/tractseg/libs/plot_utils.py", line 11, in
from nibabel import trackvis
ImportError: cannot import name 'trackvis' from 'nibabel' (/home/brain/.local/lib/python3.8/site-packages/nibabel/init.py)
The text was updated successfully, but these errors were encountered: