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

Issue with installation #182

Open
rlowe-altoslabs opened this issue Mar 13, 2024 · 2 comments
Open

Issue with installation #182

rlowe-altoslabs opened this issue Mar 13, 2024 · 2 comments

Comments

@rlowe-altoslabs
Copy link

Looks like you may need to pin BioPython or update the imports. On a new environment I installed fanc with lead to Biopython being installed with version 1.83 where GC has changed to gc_fraction (since 1.80). Running fanc with this installed leads to

File "/usr/local/lib/python3.8/dist-packages/fanc/architecture/compartments.py", line 11, in <module>
    from Bio.SeqUtils import GC as calculate_gc_content
ImportError: cannot import name 'GC' from 'Bio.SeqUtils' (/usr/local/lib/python3.8/dist-packages/Bio/SeqUtils/__init__.py)

For now installing via the following solves the issue.

pip install biopython==1.80 fanc
@kaukrise
Copy link
Collaborator

Thank you for bringing this to my attention, can you please test this version?

fanc-0.9.28.tar.gz

Could not get myself to completely abandon Biopython < 1.8.0, so I put a catch block around the import. Tested this myself on Python 3.12.2, fresh venv.

@rlowe-altoslabs
Copy link
Author

Yeah works, thanks for the speedy response.

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