Bio.Alphabet import error for Biopython 1.78

Issue #77 resolved
Mamie Wang created an issue

Bio.Alphabet module was recently removed in Biopython 1.78 (Sep 2020) and this gave an import error from IO.py.

File "/home/mw957/project/conda_envs/r_env/lib/python3.7/site-packages/presto/IO.py", line 15, in <module>
    from Bio.Alphabet import IUPAC
  File "/home/mw957/project/conda_envs/r_env/lib/python3.7/site-packages/Bio/Alphabet/__init__.py", line 21, in <module>
    "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."
ImportError: 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.

Comments (2)

  1. Jason Vander Heiden

    This looks like a duplicate of #76. Can you check that the error still persists for the version in master?

  2. Log in to comment