AndersenLab / VCF-kit

VCF-kit: Assorted utilities for the variant call format
http://www.andersenlab.org
MIT License
122 stars 25 forks source link

ImportError: No module named vcfkit #32

Closed vappiah closed 3 years ago

vappiah commented 3 years ago

Dear Developers,

I was running vk vcf2tsv on my vcf and I had the error below. Please advice

Traceback (most recent call last): File "/home/user/.local/lib/python3.6/site-packages/vcfkit/vcf2tsv.py", line 89, in line = line.replace("u'","") # No idea why u' is prefixed... TypeError: a bytes-like object is required, not 'str' ImportError: No module named vcfkit

danielecook commented 3 years ago

@jotes35 I have made a few changes that I think should resolve this. Please try the latest version (0.2.9).

vappiah commented 3 years ago

Thanks @danielecook . I will try and get back to you

laura-bankers commented 3 years ago

Hello - I am having a similar problem using the latest docker image (andersenlab/vcf-kit:20200822175018b7b60d). Any help is much appreciated.

Error: Traceback (most recent call last): File "/opt/conda/envs/vcf-kit/lib/python3.7/site-packages/vcfkit/vcf2tsv.py", line 89, in line = line.replace("u'","") # No idea why u' is prefixed... TypeError: a bytes-like object is required, not 'str'

monagai commented 1 year ago

Today I've got the same error with the latest docker version (0.2.6) using vcf2tsv.