AndersenLab / VCF-kit

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

TypeError Python 3 #30

Open sofsta opened 4 years ago

sofsta commented 4 years ago

Hello,

I am having an environment.yml file and I am installing vcfkit through conda. The file looks as follows:

name:myenv channels:

I get the following error when I am using vcfkit:

Command error: Traceback (most recent call last): File "/opt/conda/envs/myenv/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'

Has anyone come across the same error?

danielecook commented 3 years ago

@sofsta I have just submitted a new version that I believe will resolve this. Please try the latest version (0.2.9)

sofsta commented 3 years ago

@danielecook Thank you! Are you planning to update the conda environment as well?