Sorry, now I have a problem.
When I want to run dwifslpreproc command, I am faced with this error. Can you help me to fix it?
My code:dwifslpreproc
Traceback (most recent call last): File “/home/ye/miniconda3/bin/dwifslpreproc”, line 1327, in import mrtrix3 File “/home/ye/miniconda3/bin/mrtrix3.py”, line 17, in import imp, os, sys ModuleNotFoundError: No module named ‘imp’
This problem has been fixed on the master branch, but is not yet part of a tagged release.
The easiest way around this is to use Python 3.11.* instead. Given yo are already using miniconda you can easily create a new conda environment running python 3.11:
Thanks for your quick response! I create a new conda environment and run python 3.11, but I am sorry to say that it doesn’t work, still the same error.
Is the python version still high? I see an expert as you saying “imp” was improved from Python 3.4 in another post.
Is it a good idea to run python3.3? I am afraid that the low python version will influence the subsequent preprocess.
Hi..
I am getting this sort of error. What to do.. could you help..
Traceback (most recent call last):
File “/home/pc/Downloads/MRtrix3Tissue-master/bin/dwifslpreproc”, line 1124, in
import mrtrix3
File “/home/pc/Downloads/MRtrix3Tissue-master/bin/mrtrix3.py”, line 1, in
import imp, os, sys
ModuleNotFoundError: No module named ‘imp’
Traceback (most recent call last):
File “/home/pc/Downloads/MRtrix3Tissue-master/bin/dwibiascorrect”, line 66, in
import mrtrix3
File “/home/pc/Downloads/MRtrix3Tissue-master/bin/mrtrix3.py”, line 1, in
import imp, os, sys
ModuleNotFoundError: No module named ‘imp’