Skip to content
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

Bio module not found in script #217

Open
wwood opened this issue Oct 30, 2024 · 1 comment
Open

Bio module not found in script #217

wwood opened this issue Oct 30, 2024 · 1 comment

Comments

@wwood
Copy link
Collaborator

wwood commented Oct 30, 2024

$ aviary recover -a assembly_checkpointing_megahit_output/megahit/assembly_output/final.contigs.fa --binning-only --skip-binners rosella vamb -c ../data/ERR34*
...
[Thu Oct 31 06:44:25 2024]
localrule finalise_stats:                                                                                                                                                                                            input: bins/checkm.out, bins/checkm2_output/quality_report.tsv                                                                                                                                                   output: bins/bin_info.tsv, bins/checkm_minimal.tsv
    jobid: 1
    reason: Missing output files: bins/bin_info.tsv
    resources: tmpdir=/data1/tmp                                                                                                                                                                                                                                                                                                                                                                                                  Traceback (most recent call last):                                                                                                                                                                                 File "/mnt/hpccs01/work/microbiome/msingle/mess/188_phosphate_addition_incubation/all_in_assembly/.snakemake/scripts/tmp3zrqvz86.finalise_stats.py", line 6, in <module>
    from Bio import SeqIO                                                                                                                                                                                        ModuleNotFoundError: No module named 'Bio'

I'm confused by this - biopython is installed, and importing Bio from a python repl works fine. Any idea why this script isn't finding it?

(aviary-dev)cl5n006:20241031:~/m/msingle/mess/188_phosphate_addition_incubation/all_in_assembly$ python3
Python 3.11.0 | packaged by conda-forge | (main, Jan 14 2023, 12:27:40) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import Bio
>>> 
@rhysnewell
Copy link
Owner

Hmm, that's a frustrating issue. There may be an issue with python being aliased by another command in your .bashrc? I assume you aren't running this on a cluster, but it may be similar to this situation? snakemake/snakemake#883 (comment)

If your conda environment and the environment snakemake is using match, then this shouldn't be happening so there has to be some sort of path weirdness going on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants