ImportError: cannot import name 'ft2font' from partially initialized module 'matplotlib'
0
0
Entering edit mode
2.2 years ago

Hey

I am using bcftools script plot_roh.py but when I run the command I get an error

plot-roh.py -o plot.png roh_dir/
Traceback (most recent call last):
  File "/usr/bin/plot-roh.py", line 130, in <module>
    import matplotlib as mpl
  File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 205, in <module>
    _check_versions()
  File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 190, in _check_versions
    from . import ft2font
ImportError: cannot import name 'ft2font' from partially initialized module 'matplotlib' (most likely due to a circular import) (/usr/lib/python3/dist-packages/matplotlib/__init__.py)

Kindly help me out in resolving the issue.

Thanks in advance

bcftools matplotlib roh plot-roh.py • 1.3k views
ADD COMMENT

Login before adding your answer.

Traffic: 2195 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