Skip to content

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

@victorlin

Description

@victorlin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions