-
Notifications
You must be signed in to change notification settings - Fork 6
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
Failed to install DTR-phage-pipeline #6
Comments
I won't have time to check into this until later, but our pipeline was
built and tested on python 3.7. Python 3.8 arrived in bioconda this month.
Try changing "python >= 3.7" to "python == 3.7" in environment.yml and
rebuilding the env.
…-John
On Tue, Sep 15, 2020, 4:24 AM Longhao Jia ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/32414349/93204613-f8ccb680-f788-11ea-9a58-67a94c9c6d87.png>
After run:
conda env create -f environment.yml
conda activate DTR-phage-pipeline
snakemake --use-conda -p -r -j 10
I got the error,
-bash:
/home1/jialh/tools/miniconda3/envs/DTR-phage-pipeline/bin/snakemake:
/home1/jialh/tools/miniconda3/envs/DTR-phage-pipeline/bin/python3.8: bad
interpreter: Invalid argument
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on Github
<#6>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANDP3FVYJCE2LUOOH26G5LSF5FGDANCNFSM4RM7IKAQ>
.ok
|
I've looked into this a little more. First, my suggestion above was not 100% correct. That will get you python 3.7.0. To get the latest python 3.7 the environment.yml file should look like this:
The double equals (==) gives you python 3.7.0. The latest right now is 3.7.8. Second, I'm unable to reproduce this bug. The test workflow is running just fine for me under python 3.8. I think your conda installation didn't work correctly. Try running just "snakemake -h" to confirm. I suspect you'll get the same error. The "bash: ... bad interpreter ..." coming from snakemake means that BASH can't figure out how to run snakemake. Common causes are your python executable is corrupt or non-executable or the #! line that starts the snakemake script is corrupted. Are you using Docker or other container service? The "bad interpreter: invalid argument" error seems to often be related to a corrupt docker filesystem. |
Thank you! I will have a try. |
Snakemake is trying to build dedicated conda environments for some of the workflow steps. These are defined in the What operating system are you using? |
After run:
I got the error,
-bash: /home1/jialh/tools/miniconda3/envs/DTR-phage-pipeline/bin/snakemake: /home1/jialh/tools/miniconda3/envs/DTR-phage-pipeline/bin/python3.8: bad interpreter: Invalid argument
The text was updated successfully, but these errors were encountered: