MultiQC: ModuleNotFoundError: No module named 'imp'
Asked Answered
P

4

21

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?

Prognostication answered 11/10, 2023 at 15:48 Comment(0)
B
38

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.

Boxcar answered 12/10, 2023 at 13:45 Comment(0)
E
3

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

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

Easterling answered 12/10, 2023 at 12:27 Comment(0)
H
1

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

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

Honeyhoneybee answered 23/6 at 12:36 Comment(0)
S
1

In Python 3.12 there is no module called imp. Instead of use importlib as:

from importlib import import_module

Additional info provided by the docs: https://docs.python.org/3/whatsnew/3.12.html#imp

Sow answered 28/6 at 11:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.