Dwifslpreproc can't work

Hello everyone

When I was using dwifslpreproc to preprocessing imagine, the following error appeared:
{File “/home/dxf/miniconda3/bin/dwifslpreproc”, line 1327, in import mrtrix3
File “/home/dxf/miniconda3/bin/mrtrix3.py”, line 17, in import imp, os, sys
ModuleNotFoundError: No module named ‘imp’}
Does anyone can help me to solve it?

Best wishes!
yao

Hi Yao,

it’s probably because the imp module is deprecated, s. BATMAN tutorial step 2.4 – zsh: command not found: dwipreproc - #4 by lea
You could try using a Python version that is older than 3.12, unfortunately I’m not aware of other ways to solve this so this is how I did it.

Best wishes,
Tanja

Hello Tanja,

I have just come across this thread, as I was having the same issue when trying to use the program as this person, and it seems you found the solution of using an older version of Python.

I was trying to find a way to do so, but it seemed like MRTrix3 uses an installation of Python separate from what I downloaded myself onto my computer. I did not know how to alter the version of Python MRTrix3 was running. Do you mind clarifying how you did so? This would be a great help!

Thank you,
Robert