Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MultiQC: ModuleNotFoundError: No module named 'imp'

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

How to fix the issue?

like image 367
Tarequl Nishad Avatar asked Sep 06 '25 14:09

Tarequl Nishad


2 Answers

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.

like image 62
merv Avatar answered Sep 08 '25 15:09

merv


If you are using python3.12, you should use importlib instead of imp module.

up to python 3.11 => imp python 3.12+ ==> importlib

like image 27
Abhijit Roy Avatar answered Sep 08 '25 16:09

Abhijit Roy