# MultiQC: ModuleNotFoundError: No module named 'imp'

**URL:** <https://community.seqera.io/t/multiqc-modulenotfounderror-no-module-named-imp/147>\
**Category:** Ask for help\
**Tags:** multiqc\
**Created:** [October 12, 2023, 10:25am UTC](https://community.seqera.io/t/multiqc-modulenotfounderror-no-module-named-imp/147 "2023-10-12T10:25:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarequl\_Nishad](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/tarequl_nishad/32/130_2.png) [@Tarequl\_Nishad](https://community.seqera.io/u/Tarequl_Nishad)\
**Post date:** [October 12, 2023, 10:25am UTC](https://community.seqera.io/t/multiqc-modulenotfounderror-no-module-named-imp/147/1 "2023-10-12T10:25:16Z")

</div>

![Screenshot from 2023-10-11 17-25-07](https://europe1.discourse-cdn.com/flex013/uploads/seqera/original/1X/6fc7e2cb3e593e165fecf508ba711804a283ed05.png)

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?

---

<div class="post-metadata">

**Author:** ![ewels](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ewels/32/1_2.png) [@ewels](https://community.seqera.io/u/ewels)\
**Post date:** [October 12, 2023, 10:38am UTC](https://community.seqera.io/t/multiqc-modulenotfounderror-no-module-named-imp/147/2 "2023-10-12T10:38:10Z")

</div>

Ooh, that’s not good. I managed to replicate it locally so it’s not just you. I guess you’re one of the first to try running with Python 3.12 - seems specific to this version of Python.

I made an issue on the MultiQC repo to track this:

> <https://github.com/ewels/MultiQC/issues/2112>
>
> Looks like MultiQC is having some problems running in Conda with Python 3.12, du…e to a dependency error of some kind:
> 
> \`\`\`console
> ❯ conda create --name py3.12 python=3.12 multiqc --yes --quiet
> Collecting package metadata (current\_repodata.json): ...working... done
> Solving environment: ...working... done
> 
> \## Package Plan ##
> 
> environment location: /Users/ewels/.miniconda3/miniconda3/envs/py3.12
> 
> added / updated specs:
> - multiqc
> - python=3.12
> 
> 
> The following packages will be downloaded:
> \`\`\`
> 
> \<details\>
> 
> \`\`\`
> package | build
> ---------------------------|-----------------
> brotli-1.1.0 | hb547adb\_1 19 KB conda-forge
> brotli-bin-1.1.0 | hb547adb\_1 17 KB conda-forge
> brotli-python-1.1.0 | py312h9f69965\_1 335 KB conda-forge
> ca-certificates-2023.7.22 | hf0a4a13\_0 146 KB conda-forge
> certifi-2023.7.22 | pyhd8ed1ab\_0 150 KB conda-forge
> charset-normalizer-3.3.0 | pyhd8ed1ab\_0 45 KB conda-forge
> click-8.1.7 |unix\_pyh707e725\_0 82 KB conda-forge
> contourpy-1.1.1 | py312h389731b\_1 222 KB conda-forge
> cycler-0.12.1 | pyhd8ed1ab\_0 13 KB conda-forge
> fonttools-4.43.1 | py312he37b823\_0 2.5 MB conda-forge
> freetype-2.12.1 | hadb7bae\_2 582 KB conda-forge
> humanfriendly-10.0 | pyhd8ed1ab\_6 72 KB conda-forge
> importlib-metadata-6.8.0 | pyha770c72\_0 25 KB conda-forge
> kiwisolver-1.4.5 | py312h389731b\_1 60 KB conda-forge
> lcms2-2.15 | hf2736f0\_3 210 KB conda-forge
> libblas-3.9.0 |18\_osxarm64\_openblas 15 KB conda-forge
> libbrotlicommon-1.1.0 | hb547adb\_1 67 KB conda-forge
> libbrotlidec-1.1.0 | hb547adb\_1 28 KB conda-forge
> libbrotlienc-1.1.0 | hb547adb\_1 274 KB conda-forge
> libcblas-3.9.0 |18\_osxarm64\_openblas 14 KB conda-forge
> libcxx-16.0.6 | h4653b0c\_0 1.1 MB conda-forge
> libdeflate-1.19 | hb547adb\_0 52 KB conda-forge
> libgfortran-5.0.0 |13\_2\_0\_hd922786\_1 108 KB conda-forge
> libgfortran5-13.2.0 | hf226fd6\_1 972 KB conda-forge
> libjpeg-turbo-3.0.0 | hb547adb\_1 535 KB conda-forge
> liblapack-3.9.0 |18\_osxarm64\_openblas 14 KB conda-forge
> libopenblas-0.3.24 |openmp\_hd76b1f2\_0 2.7 MB conda-forge
> libsqlite-3.43.2 | h091b4b1\_0 790 KB conda-forge
> libtiff-4.6.0 | ha8a6c65\_2 240 KB conda-forge
> libwebp-base-1.3.2 | hb547adb\_0 267 KB conda-forge
> libxcb-1.15 | hf346824\_0 327 KB conda-forge
> llvm-openmp-17.0.2 | h1c12783\_0 269 KB conda-forge
> markdown-3.5 | pyhd8ed1ab\_0 75 KB conda-forge
> markdown-it-py-3.0.0 | pyhd8ed1ab\_0 63 KB conda-forge
> markupsafe-2.1.3 | py312h02f2b3b\_1 26 KB conda-forge
> matplotlib-base-3.8.0 | py312hba9b818\_2 7.5 MB conda-forge
> multiqc-1.16 | pyhdfd78af\_0 1.0 MB bioconda
> networkx-3.1 | pyhd8ed1ab\_0 1.4 MB conda-forge
> numpy-1.26.0 | py312h696b312\_0 5.9 MB conda-forge
> openjpeg-2.5.0 | h4c1507b\_3 316 KB conda-forge
> openssl-3.1.3 | h53f4e23\_0 2.1 MB conda-forge
> packaging-23.2 | pyhd8ed1ab\_0 48 KB conda-forge
> pillow-10.0.1 | py312hb653a51\_2 43.8 MB conda-forge
> pip-23.2.1 | pyhd8ed1ab\_0 1.3 MB conda-forge
> pthread-stubs-0.4 | h27ca646\_1001 6 KB conda-forge
> pygments-2.16.1 | pyhd8ed1ab\_0 833 KB conda-forge
> pyparsing-3.1.1 | pyhd8ed1ab\_0 87 KB conda-forge
> python-3.12.0 |h47c9636\_0\_cpython 12.7 MB conda-forge
> python\_abi-3.12 | 4\_cp312 6 KB conda-forge
> pyyaml-6.0.1 | py312h02f2b3b\_1 178 KB conda-forge
> requests-2.31.0 | pyhd8ed1ab\_0 55 KB conda-forge
> rich-13.6.0 | pyhd8ed1ab\_0 179 KB conda-forge
> rich-click-1.7.0 | pyhd8ed1ab\_0 32 KB conda-forge
> setuptools-68.2.2 | pyhd8ed1ab\_0 454 KB conda-forge
> simplejson-3.19.2 | py312he37b823\_0 126 KB conda-forge
> tk-8.6.13 | hb31c410\_0 3.1 MB conda-forge
> typing\_extensions-4.8.0 | pyha770c72\_0 34 KB conda-forge
> urllib3-2.0.6 | pyhd8ed1ab\_0 96 KB conda-forge
> wheel-0.41.2 | pyhd8ed1ab\_0 56 KB conda-forge
> xorg-libxau-1.0.11 | hb547adb\_0 13 KB conda-forge
> zipp-3.17.0 | pyhd8ed1ab\_0 19 KB conda-forge
> zstd-1.5.5 | h4f39d0f\_0 391 KB conda-forge
> ------------------------------------------------------------
> Total: 94.0 MB
> 
> The following NEW packages will be INSTALLED:
> 
> brotli conda-forge/osx-arm64::brotli-1.1.0-hb547adb\_1
> brotli-bin conda-forge/osx-arm64::brotli-bin-1.1.0-hb547adb\_1
> brotli-python conda-forge/osx-arm64::brotli-python-1.1.0-py312h9f69965\_1
> bzip2 conda-forge/osx-arm64::bzip2-1.0.8-h3422bc3\_4
> ca-certificates conda-forge/osx-arm64::ca-certificates-2023.7.22-hf0a4a13\_0
> certifi conda-forge/noarch::certifi-2023.7.22-pyhd8ed1ab\_0
> charset-normalizer conda-forge/noarch::charset-normalizer-3.3.0-pyhd8ed1ab\_0
> click conda-forge/noarch::click-8.1.7-unix\_pyh707e725\_0
> coloredlogs conda-forge/noarch::coloredlogs-15.0.1-pyhd8ed1ab\_3
> colormath conda-forge/noarch::colormath-3.0.0-py\_2
> contourpy conda-forge/osx-arm64::contourpy-1.1.1-py312h389731b\_1
> cycler conda-forge/noarch::cycler-0.12.1-pyhd8ed1ab\_0
> fonttools conda-forge/osx-arm64::fonttools-4.43.1-py312he37b823\_0
> freetype conda-forge/osx-arm64::freetype-2.12.1-hadb7bae\_2
> future conda-forge/noarch::future-0.18.3-pyhd8ed1ab\_0
> humanfriendly conda-forge/noarch::humanfriendly-10.0-pyhd8ed1ab\_6
> idna conda-forge/noarch::idna-3.4-pyhd8ed1ab\_0
> importlib-metadata conda-forge/noarch::importlib-metadata-6.8.0-pyha770c72\_0
> jinja2 conda-forge/noarch::jinja2-3.1.2-pyhd8ed1ab\_1
> kiwisolver conda-forge/osx-arm64::kiwisolver-1.4.5-py312h389731b\_1
> lcms2 conda-forge/osx-arm64::lcms2-2.15-hf2736f0\_3
> lerc conda-forge/osx-arm64::lerc-4.0.0-h9a09cb3\_0
> libblas conda-forge/osx-arm64::libblas-3.9.0-18\_osxarm64\_openblas
> libbrotlicommon conda-forge/osx-arm64::libbrotlicommon-1.1.0-hb547adb\_1
> libbrotlidec conda-forge/osx-arm64::libbrotlidec-1.1.0-hb547adb\_1
> libbrotlienc conda-forge/osx-arm64::libbrotlienc-1.1.0-hb547adb\_1
> libcblas conda-forge/osx-arm64::libcblas-3.9.0-18\_osxarm64\_openblas
> libcxx conda-forge/osx-arm64::libcxx-16.0.6-h4653b0c\_0
> libdeflate conda-forge/osx-arm64::libdeflate-1.19-hb547adb\_0
> libexpat conda-forge/osx-arm64::libexpat-2.5.0-hb7217d7\_1
> libffi conda-forge/osx-arm64::libffi-3.4.2-h3422bc3\_5
> libgfortran conda-forge/osx-arm64::libgfortran-5.0.0-13\_2\_0\_hd922786\_1
> libgfortran5 conda-forge/osx-arm64::libgfortran5-13.2.0-hf226fd6\_1
> libjpeg-turbo conda-forge/osx-arm64::libjpeg-turbo-3.0.0-hb547adb\_1
> liblapack conda-forge/osx-arm64::liblapack-3.9.0-18\_osxarm64\_openblas
> libopenblas conda-forge/osx-arm64::libopenblas-0.3.24-openmp\_hd76b1f2\_0
> libpng conda-forge/osx-arm64::libpng-1.6.39-h76d750c\_0
> libsqlite conda-forge/osx-arm64::libsqlite-3.43.2-h091b4b1\_0
> libtiff conda-forge/osx-arm64::libtiff-4.6.0-ha8a6c65\_2
> libwebp-base conda-forge/osx-arm64::libwebp-base-1.3.2-hb547adb\_0
> libxcb conda-forge/osx-arm64::libxcb-1.15-hf346824\_0
> libzlib conda-forge/osx-arm64::libzlib-1.2.13-h53f4e23\_5
> llvm-openmp conda-forge/osx-arm64::llvm-openmp-17.0.2-h1c12783\_0
> lzstring conda-forge/noarch::lzstring-1.0.4-py\_1001
> markdown conda-forge/noarch::markdown-3.5-pyhd8ed1ab\_0
> markdown-it-py conda-forge/noarch::markdown-it-py-3.0.0-pyhd8ed1ab\_0
> markupsafe conda-forge/osx-arm64::markupsafe-2.1.3-py312h02f2b3b\_1
> matplotlib-base conda-forge/osx-arm64::matplotlib-base-3.8.0-py312hba9b818\_2
> mdurl conda-forge/noarch::mdurl-0.1.0-pyhd8ed1ab\_0
> multiqc bioconda/noarch::multiqc-1.16-pyhdfd78af\_0
> munkres conda-forge/noarch::munkres-1.1.4-pyh9f0ad1d\_0
> ncurses conda-forge/osx-arm64::ncurses-6.4-h7ea286d\_0
> networkx conda-forge/noarch::networkx-3.1-pyhd8ed1ab\_0
> numpy conda-forge/osx-arm64::numpy-1.26.0-py312h696b312\_0
> openjpeg conda-forge/osx-arm64::openjpeg-2.5.0-h4c1507b\_3
> openssl conda-forge/osx-arm64::openssl-3.1.3-h53f4e23\_0
> packaging conda-forge/noarch::packaging-23.2-pyhd8ed1ab\_0
> pillow conda-forge/osx-arm64::pillow-10.0.1-py312hb653a51\_2
> pip conda-forge/noarch::pip-23.2.1-pyhd8ed1ab\_0
> pthread-stubs conda-forge/osx-arm64::pthread-stubs-0.4-h27ca646\_1001
> pygments conda-forge/noarch::pygments-2.16.1-pyhd8ed1ab\_0
> pyparsing conda-forge/noarch::pyparsing-3.1.1-pyhd8ed1ab\_0
> pysocks conda-forge/noarch::pysocks-1.7.1-pyha2e5f31\_6
> python conda-forge/osx-arm64::python-3.12.0-h47c9636\_0\_cpython
> python-dateutil conda-forge/noarch::python-dateutil-2.8.2-pyhd8ed1ab\_0
> python\_abi conda-forge/osx-arm64::python\_abi-3.12-4\_cp312
> pyyaml conda-forge/osx-arm64::pyyaml-6.0.1-py312h02f2b3b\_1
> readline conda-forge/osx-arm64::readline-8.2-h92ec313\_1
> requests conda-forge/noarch::requests-2.31.0-pyhd8ed1ab\_0
> rich conda-forge/noarch::rich-13.6.0-pyhd8ed1ab\_0
> rich-click conda-forge/noarch::rich-click-1.7.0-pyhd8ed1ab\_0
> setuptools conda-forge/noarch::setuptools-68.2.2-pyhd8ed1ab\_0
> simplejson conda-forge/osx-arm64::simplejson-3.19.2-py312he37b823\_0
> six conda-forge/noarch::six-1.16.0-pyh6c4a22f\_0
> spectra conda-forge/noarch::spectra-0.0.11-py\_1
> tk conda-forge/osx-arm64::tk-8.6.13-hb31c410\_0
> typing\_extensions conda-forge/noarch::typing\_extensions-4.8.0-pyha770c72\_0
> tzdata conda-forge/noarch::tzdata-2023c-h71feb2d\_0
> urllib3 conda-forge/noarch::urllib3-2.0.6-pyhd8ed1ab\_0
> wheel conda-forge/noarch::wheel-0.41.2-pyhd8ed1ab\_0
> xorg-libxau conda-forge/osx-arm64::xorg-libxau-1.0.11-hb547adb\_0
> xorg-libxdmcp conda-forge/osx-arm64::xorg-libxdmcp-1.1.3-h27ca646\_0
> xz conda-forge/osx-arm64::xz-5.2.6-h57fd34a\_0
> yaml conda-forge/osx-arm64::yaml-0.2.5-h3422bc3\_2
> zipp conda-forge/noarch::zipp-3.17.0-pyhd8ed1ab\_0
> zstd conda-forge/osx-arm64::zstd-1.5.5-h4f39d0f\_0
> 
> 
> Preparing transaction: ...working... done
> Verifying transaction: ...working... done
> Executing transaction: ...working... done
> \`\`\`
> 
> \</details\>
> 
> \`\`\`console
> ❯ conda activate py3.12
> 
> ❯ multiqc --help
> Traceback (most recent call last):
> File "/Users/ewels/.miniconda3/miniconda3/envs/py3.12/bin/multiqc", line 6, in \<module\>
> from multiqc.\_\_main\_\_ import run\_multiqc
> File "/Users/ewels/.miniconda3/miniconda3/envs/py3.12/lib/python3.12/site-packages/multiqc/\_\_init\_\_.py", line 16, in \<module\>
> from .multiqc import run
> File "/Users/ewels/.miniconda3/miniconda3/envs/py3.12/lib/python3.12/site-packages/multiqc/multiqc.py", line 30, in \<module\>
> from .plots import table
> File "/Users/ewels/.miniconda3/miniconda3/envs/py3.12/lib/python3.12/site-packages/multiqc/plots/table.py", line 9, in \<module\>
> from multiqc.plots import beeswarm, table\_object
> File "/Users/ewels/.miniconda3/miniconda3/envs/py3.12/lib/python3.12/site-packages/multiqc/plots/beeswarm.py", line 9, in \<module\>
> from multiqc.plots import table\_object
> File "/Users/ewels/.miniconda3/miniconda3/envs/py3.12/lib/python3.12/site-packages/multiqc/plots/table\_object.py", line 9, in \<module\>
> from multiqc.utils import config, report
> File "/Users/ewels/.miniconda3/miniconda3/envs/py3.12/lib/python3.12/site-packages/multiqc/utils/report.py", line 18, in \<module\>
> import lzstring
> File "/Users/ewels/.miniconda3/miniconda3/envs/py3.12/lib/python3.12/site-packages/lzstring/\_\_init\_\_.py", line 11, in \<module\>
> from future import standard\_library
> File "/Users/ewels/.miniconda3/miniconda3/envs/py3.12/lib/python3.12/site-packages/future/standard\_library/\_\_init\_\_.py", line 65, in \<module\>
> import imp
> ModuleNotFoundError: No module named 'imp'
> \`\`\`

---

<div class="post-metadata">

**Author:** ![Tarequl\_Nishad](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/tarequl_nishad/32/130_2.png) [@Tarequl\_Nishad](https://community.seqera.io/u/Tarequl_Nishad)\
**Post date:** [October 14, 2023, 6:58pm UTC](https://community.seqera.io/t/multiqc-modulenotfounderror-no-module-named-imp/147/3 "2023-10-14T18:58:48Z")

</div>

Thank you so much ewels for the reply. You are absolutely right. It has some issue with the python 3.12. I fixed the issue with the installation of phython 3.11. Now, MultiQC is working.

---

<div class="post-metadata">

**Author:** ![ewels](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ewels/32/1_2.png) [@ewels](https://community.seqera.io/u/ewels)\
**Post date:** [October 14, 2023, 8:08pm UTC](https://community.seqera.io/t/multiqc-modulenotfounderror-no-module-named-imp/147/4 "2023-10-14T20:08:23Z")

</div>

Great stuff. Thanks for letting us know! We have a fix in the works. Hoping to release on Monday.

---

<div class="post-metadata">

**Author:** ![ewels](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ewels/32/1_2.png) [@ewels](https://community.seqera.io/u/ewels)\
**Post date:** [October 21, 2023, 3:46pm UTC](https://community.seqera.io/t/multiqc-modulenotfounderror-no-module-named-imp/147/5 "2023-10-21T15:46:51Z")

</div>

MultiQC v1.17 went out a few days ago and fixed the Python 3.12 problems, so for anyone landing here I’d recommend upgrading to both the latest stable releases of MultiQC + Python ❤

You can find the release notes here:

> **[Release MultiQC Version 1.17 · ewels/MultiQC](https://github.com/ewels/MultiQC/releases/tag/v1.17)**
>
> The one with the new logo
> Highlights:
> 
> Introducing the new MultiQC logo!
> Adding support for Python 3.12 and dropping support for Python 3.7
> New --require-logs to fail if expected tool outputs are n...
