# Problem using MRtrix3Tissue alongside MRtrix3

**URL:** <https://community.mrtrix.org/t/problem-using-mrtrix3tissue-alongside-mrtrix3/8118>\
**Category:** Uncategorized\
**Tags:** installation, error, preprocessing\
**Created:** [December 14, 2024, 3:46pm UTC](https://community.mrtrix.org/t/problem-using-mrtrix3tissue-alongside-mrtrix3/8118 "2024-12-14T15:46:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomm-C](https://community.mrtrix.org/user_avatar/community.mrtrix.org/tomm-c/32/4917_2.png) [@Tomm-C](https://community.mrtrix.org/u/Tomm-C)\
**Post date:** [December 14, 2024, 3:46pm UTC](https://community.mrtrix.org/t/problem-using-mrtrix3tissue-alongside-mrtrix3/8118/1 "2024-12-14T15:46:01Z")

</div>

Hello,

I’d like to use some functionalities of MRtrix3Tissue (ss3t\_csd\_beta1, specifically) while keeping MRtrix3 as the default source of commands.

I have installed MRtrix3 in `/usr/local/mrtrix3` and everything works fine.

I then cloned the MRtrix3Tissue repository inside the `mrtrix3` directory and I proceeded as following (after having set the path for the Qt library and installed Eigen3.3.9)

```auto
cd /usr/local/mrtrix3/MRtrix3Tissue
sudo ./configure 
sudo ./build

```

The configure and build processes were successful.

Now, back to my home folder all commands are referred to MRtrix3 and I can evoke a specific MRtrix3Tissue command specifying the full path.  
As a matter of fact when I type `/usr/local/mrtrix3/MRtrix3Tissue/bin/mrinfo` I get the script referring to MRtrix3Tissue. When I type `mrinfo` I get the script referring to MRtrix3.  
The problem comes with certain MRtrix3Tissue commands such as `ss3t_csd_beta1` and `dwifslpreproc`, when I type them I get

```auto
/usr/local/mrtrix3/MRtrix3Tissue/bin/dwifslpreproc

Traceback (most recent call last):
  File "/usr/local/mrtrix3/MRtrix3Tissue/bin/dwifslpreproc", line 1124, in <module>
    import mrtrix3
  File "/usr/local/mrtrix3/MRtrix3Tissue/bin/mrtrix3.py", line 1, in <module>
    import imp, os, sys
ModuleNotFoundError: No module named 'imp'

```

The corresponding commands evoked from MRtrix3 work fine.  
Can someone help me solving this issue?

Thank You

---

<div class="post-metadata">

**Author:** ![Tomm-C](https://community.mrtrix.org/user_avatar/community.mrtrix.org/tomm-c/32/4917_2.png) [@Tomm-C](https://community.mrtrix.org/u/Tomm-C)\
**Post date:** [January 2, 2025, 3:06pm UTC](https://community.mrtrix.org/t/problem-using-mrtrix3tissue-alongside-mrtrix3/8118/2 "2025-01-02T15:06:22Z")

</div>

Solved by running those MRtrix3Tissue commands with python 2.7.18 rather than 3.13.0.

---

<div class="post-metadata">

**Author:** ![math\_priyanka](https://community.mrtrix.org/user_avatar/community.mrtrix.org/math_priyanka/32/4998_2.png) [@math\_priyanka](https://community.mrtrix.org/u/math_priyanka)\
**Post date:** [August 6, 2025, 1:59pm UTC](https://community.mrtrix.org/t/problem-using-mrtrix3tissue-alongside-mrtrix3/8118/3 "2025-08-06T13:59:58Z")

</div>

@Tomm-C Hey.. how do you do that?

I am facing same kind of error.

> 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’

Any suggestions would be a great help.
