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

ImportError: Bio.Alphabet has been removed from Biopython #739

Open
UdoGi opened this issue Jan 28, 2021 · 1 comment
Open

ImportError: Bio.Alphabet has been removed from Biopython #739

UdoGi opened this issue Jan 28, 2021 · 1 comment

Comments

@UdoGi
Copy link
Collaborator

UdoGi commented Jan 28, 2021

Several import errors are caused by the removal of this module in Biopython 1.78, e.g in test_dna.py

Bio.Alphabet has been removed from Biopython. In many cases, the alphabet can simply be ignored and removed from scripts. In a few cases, you may need to specify the molecule_type as an annotation on a SeqRecord for your script to work correctly. Please see https://biopython.org/wiki/Alphabet for more information.

@terrycojones
Copy link
Member

I just fixed some of these in #744 but others can't be fixed because the warnings are coming from inside Bio. You can see the locations via env PYTHONWARNINGS=error pytest. Once #744 is merged we'll have no more use of Bio.Alphabet and presumably one day the warning coming out of Bio will disappear.

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