-
Notifications
You must be signed in to change notification settings - Fork 115
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
vcffirstheader python 2 dependency in Snippy 4.x #224
Comments
I had the same problem,When I run Snippy 4.0.5, vcffirstheader reports an error: File "/disk1/cau/cvmjxx/miniconda3/bin/vcffirstheader", line 9 |
Yes, it seems I will have to think about how best to tackle this. |
@luckystar008 @amilesj
|
|
@amilesj thank you! and what does Under python PEP rules it should be 2.x .... but my guess is 3.x due to Conda madness. |
Yes its 3.6.2 |
1.#!/usr/bin/env python |
I think I will need to write my own wrappers for these python tools, as the conda 2 vs 3 problem will keep cropping up. Until then, you can change |
@tseemann Do I just change the version of pyhon used by vcffirstheader or change the pyhon version of entire snippy and dependency package? |
Snippy is written in Perl. not python. Snippy uses other packages (freebayes, vcflib) which include some python 2.x scripts in them. They are the issue, not snippy itself. You just need to edit the first line of all the failing scripts to point to a python 2 executable. I am unable to fix the other packages. |
One can also change all instances of |
Please also see #309 for another python 2 dependecy fix |
I have joined the |
Fixed now |
vcffirstheader seems to use python 2. When I ran Snippy 4.0.5 in my normal environment with python 3.6.2, I got the following error in the log after the
freebayes-parallel
line:File "/home/amiles/miniconda3/bin/vcffirstheader", line 9 print line.strip() ^ SyntaxError: invalid syntax
I changed my script to activate my environment with python 2.7 before running Snippy, and it worked fine.
Best,
Arianna
The text was updated successfully, but these errors were encountered: