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

Writer ImportError: cannot import name 'Reader' from 'parser' #6

Open
zezhuo opened this issue Oct 18, 2022 · 1 comment
Open

Writer ImportError: cannot import name 'Reader' from 'parser' #6

zezhuo opened this issue Oct 18, 2022 · 1 comment

Comments

@zezhuo
Copy link

zezhuo commented Oct 18, 2022

Hi @giovanniquinones,

I am quiet interested in scAllele. But I got a few errors when installing this package. I was stuck by the error below. Looking forward to your help.

scAllele --help
Traceback (most recent call last):
File "/home/zezhuo/.conda/envs/snp/bin/scAllele", line 5, in
from scAllele.scAllele import main
File "/home/zezhuo/.conda/envs/snp/lib/python3.8/site-packages/scAllele/scAllele.py", line 21, in
from . import gqv_glm
File "/home/zezhuo/.conda/envs/snp/lib/python3.8/site-packages/scAllele/gqv_glm.py", line 23, in
import vcf
File "/home/zezhuo/.conda/envs/snp/lib/python3.8/site-packages/vcf/init.py", line 166, in
from parser import Reader, Writer
ImportError: cannot import name 'Reader' from 'parser' (/home/zezhuo/.conda/envs/snp/lib/python3.8/lib-dynload/parser.cpython-38-x86_64-linux-gnu.so)

By the way, I tried to install scAllele with python 3.8-3.10. Only 3.8 works for me.

Regards,
Nelson

@giovanniquinones
Copy link
Contributor

Please make sure you are using the latest version of PyVCF module.
If the error persists, please provide the full command and bam file to reproduce the error

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