edgardomortiz / vcf2phylip

Convert SNPs in VCF format to PHYLIP, NEXUS, binary NEXUS, or FASTA alignments for phylogenetic analysis
GNU General Public License v3.0
294 stars 85 forks source link

ImportError: No module named pathlib #42

Closed lyn320 closed 1 year ago

lyn320 commented 1 year ago

my code is python vcf2phylip.py --input of_snp.vcf.gz
and I got an error but don't know how to fix it, can you help me? thank you so much!

Traceback (most recent call last): File "vcf2phylip.py", line 23, in from pathlib import Path ImportError: No module named pathlib tree_out.log (END)

lyn320 commented 1 year ago

when I use python3, this error didn't show, so I think use python3 can be a solution.

edgardomortiz commented 1 year ago

Exactly, the script is for python3, I will add that to the README, thanks

Edgardo