ImportError: No module named functools_lru_cache

478 views
Skip to first unread message

Aileen Ferraro

unread,
Apr 3, 2019, 10:55:16 AM4/3/19
to deep...@googlegroups.com
I just installed deeptools with pip, and I am getting the following error when running multiBamSummary

Traceback (most recent call last):

  File "/usr/local/bin/multiBamSummary", line 5, in <module>

    from deeptools.multiBamSummary import main

  File "/usr/local/lib/python2.7/site-packages/deeptools/multiBamSummary.py", line 9, in <module>

    import deeptools.countReadsPerBin as countR

  File "/usr/local/lib/python2.7/site-packages/deeptools/countReadsPerBin.py", line 9, in <module>

    import deeptools.utilities

  File "/usr/local/lib/python2.7/site-packages/deeptools/utilities.py", line 5, in <module>

    import matplotlib as mpl

  File "/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 130, in <module>

    from matplotlib.rcsetup import defaultParams, validate_backend, cycler

  File "/usr/local/lib/python2.7/site-packages/matplotlib/rcsetup.py", line 29, in <module>

    from matplotlib.fontconfig_pattern import parse_fontconfig_pattern

  File "/usr/local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 28, in <module>

    from backports.functools_lru_cache import lru_cache

ImportError: No module named functools_lru_cache


Any help would be greatly appreciated.

Thank you!

--
Aileen R. Ferraro
NSF Graduate Research Fellow
Department of Microbiology
University of Georgia
Athens, GA

Devon Ryan

unread,
Apr 3, 2019, 12:11:45 PM4/3/19
to Aileen Ferraro, deepTools
Hi Aileen,

Apparently python had an issue installing whatever matplotlib version
it pulled in. Try to uninstall and reinstall matplotlib. Note that
python 2.7 is deprecated and newer versions of matplotlib and most
other python packages don't support it, so you're going to want to
switch to python3 at some point. Also, I see you've installed using
`sudo`. Please never install python packages with `sudo`, use `pip
install --user`.

Devon
--
Devon Ryan, Ph.D.
Email: dpr...@dpryan.com
Data Manager/Bioinformatician
Max Planck Institute of Immunobiology and Epigenetics
Stübeweg 51
79108 Freiburg
Germany
> --
> You received this message because you are subscribed to the Google Groups "deepTools" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to deeptools+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages