MultiQC: ModuleNotFoundError: No module named 'imp'

29.7k Views Asked by At

enter image description here

I am running fastqc and multiqc in ubuntu linux terminal. fastqc runs perfectly without any issues but multiqc fails to run, showing the message. No idea how to fix the missing 'imp' module. I tried to read and apply every solution found in the internet or google.

I used the command 'conda install multiqc' to install multiqc in the existing conda environment. I tried to install it in a new conda environment. Still, its showing the same message.The python version currently running is 3.12.0

Could anyone help to fix the issue?

2

There are 2 best solutions below

0
merv On BEST ANSWER

Python 3.12 is new and the consequences of the changes it introduces (like dropping the imp module) need to propagate to the community.

Stay on Python 3.11 for now.

0
FGV On

Issue as been reported on GitHub and should be fixed in the next version:

https://github.com/ewels/MultiQC/issues/2112