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

Cannot use import vfc #336

Open
doctorasgr opened this issue Feb 13, 2022 · 1 comment
Open

Cannot use import vfc #336

doctorasgr opened this issue Feb 13, 2022 · 1 comment

Comments

@doctorasgr
Copy link

doctorasgr commented Feb 13, 2022

Hi everyone,
I just installed PyVCF today and after tried to run import vcf what I see in my terminal is this:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\my_user_folder\anaconda3\envs\my_sprint\lib\site-packages\vcf\__init__.py", line 166, in <module>
    from parser import Reader, Writer
ImportError: cannot import name 'Reader' from 'parser' (unknown location)

Any ideas why?

I went to the init.py and opened this in the editor and all I can see is:

from parser import Reader, Writer <====== this is the line 166
from parser import VCFReader, VCFWriter
from filters import Base as Filter
from parser import RESERVED_INFO, RESERVED_FORMAT

VERSION = '0.4.3'
@dridk
Copy link

dridk commented Feb 15, 2022

Hi, PyVCF is not maintained anymore. We do not have any feedback from the author since a while.
I suggest to use PyVCF3 instead :
https://github.com/dridk/PyVCF3

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

2 participants