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

Error in GFFParser: AttributeError: module 'Bio.SeqFeature' has no attribute 'SimpleLocation' #142

Open
victorlin opened this issue Jan 29, 2024 · 0 comments

Comments

@victorlin
Copy link

victorlin commented Jan 29, 2024

The feature in question was added in Biopython 1.80, so it does not work with earlier versions.

This was by a test in one of my repos after the recent release of 0.7.1 (specifically commit eec72c3). Error message snippet:

+    File "/home/runner/micromamba/envs/augur/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 589, in _get_feature
+      new_feature = SeqFeature.SeqFeature(SeqFeature.SimpleLocation(start=rstart, end=rend, strand=feature_dict['strand']), feature_dict['type'],
+  AttributeError: module 'Bio.SeqFeature' has no attribute 'SimpleLocation'

Workaround

Install biopython>=1.80

Potential solution

Pin biopython>=1.80 in setup.py so dependency resolvers (e.g. pip) will not be able to install an incompatible version.

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

1 participant