deepTools : No module named cycler
1
0
Entering edit mode
3.9 years ago
mbk0asis ▴ 680

Hello,

I'm getting an error message below after upgrading my system to Ubuntu 20.04 when executed 'deepTools' including 'bamCoverage', 'plotHeatmap' and etc.

Traceback (most recent call last):
  File "/usr/local/bin/plotHeatmap", line 5, in <module>
    from deeptools.plotHeatmap import main
  File "/usr/local/lib/python2.7/dist-packages/deeptools/plotHeatmap.py", line 8, in <module>
    import matplotlib
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/__init__.py", line 130, in <module>
    from matplotlib.rcsetup import defaultParams, validate_backend, cycler
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 33, in <module>
    from cycler import Cycler, cycler as ccycler
ImportError: No module named cycler

It seemed like a compatibility problem between python 2 and 3.

So I tried to completely remove 'deepTools' using pip/pip3 and install again.

But I got another error.

$ sudo pip3 uninstall deeptools    

Found existing installation: deepTools 3.3.2
Not uninstalling deeptools at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'deepTools'. No files were found to uninstall.

Anyone has any idea? I'm completely lost...

deepTools python cycler • 2.7k views
ADD COMMENT
1
Entering edit mode
3.9 years ago
ATpoint 82k

python2.7 <=> pip3

See the issue? You have a python2 vs. python3 conflict. How did you install python3 in the first place?

ADD COMMENT
0
Entering edit mode

Sorry for late reply. I just upgrade Ubuntu to 20.04 which had python3 as a default interpreter, so I installed 2.7 later with apt python2. Thank you!

ADD REPLY
1
Entering edit mode

Python3 is fine, current deeptools in on Python3, I'd remove the python2 stuff completely and then repeat the installation as described in the deeptools manual.

ADD REPLY
1
Entering edit mode

Thank you, ATpoint! It worked after removing python2 in the system.

ADD REPLY

Login before adding your answer.

Traffic: 2037 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6