Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'Reader' from 'parser' #9

Open
manimino opened this issue Aug 31, 2022 · 1 comment
Open

ImportError: cannot import name 'Reader' from 'parser' #9

manimino opened this issue Aug 31, 2022 · 1 comment

Comments

@manimino
Copy link

Got this error when running pip install vcftoolz.

Traceback (most recent call last):
  File "/home/theo/anaconda3/bin/vcftoolz", line 5, in <module>
    from vcftoolz.cli import main
  File "/home/theo/anaconda3/lib/python3.9/site-packages/vcftoolz/cli.py", line 12, in <module>
    from vcftoolz import vcftoolz
  File "/home/theo/anaconda3/lib/python3.9/site-packages/vcftoolz/vcftoolz.py", line 19, in <module>
    import vcf
  File "/home/theo/anaconda3/lib/python3.9/site-packages/vcf/__init__.py", line 166, in <module>
    from parser import Reader, Writer
ImportError: cannot import name 'Reader' from 'parser' (/home/theo/anaconda3/lib/python3.9/lib-dynload/parser.cpython-39-x86_64-linux-gnu.so)
@manimino
Copy link
Author

Fixed the problem by running conda install --channel "conda-forge" pyvcf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant