socru icon indicating copy to clipboard operation
socru copied to clipboard

Bio.alphabet error

Open gbouras13 opened this issue 2 years ago • 0 comments

Describe the bug

Hi, I installed socru using Conda v 2.2.4 and got this error when I tried it on an isolate

Traceback (most recent call last): File "/Users/a1667917/mambaforge/envs/socru/bin/socru", line 10, in from socru.Socru import Socru File "/Users/a1667917/mambaforge/envs/socru/lib/python3.9/site-packages/socru/Socru.py", line 13, in from socru.FragmentFiles import FragmentFiles File "/Users/a1667917/mambaforge/envs/socru/lib/python3.9/site-packages/socru/FragmentFiles.py", line 4, in from Bio.Alphabet import generic_dna File "/Users/a1667917/mambaforge/envs/socru/lib/python3.9/site-packages/Bio/Alphabet/init.py", line 20, in raise ImportError( 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.

Additional context This error was fixed when I commented out socru/FragmentFiles.py line 4 and socru ran fine without any issues.

George

gbouras13 avatar Sep 13 '22 01:09 gbouras13