This is a test version of Biostars. For the public version, visit https://www.biostars.org.
ImportError: cannot import name 'ft2font' from partially initialized module 'matplotlib'

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

0 answers

No answers yet.

Log in to answer this question.