jorvis / biocode

Bioinformatics code libraries and scripts
MIT License
504 stars 247 forks source link

AttributeError: type object 'str' has no attribute 'maketrans' #61

Closed PengXieAMJ closed 5 years ago

PengXieAMJ commented 5 years ago

Traceback (most recent call last): File "remove_duplicate_sequences.py", line 27, in from biocode import utils File "/opt/biocode/lib/biocode/utils.py", line 6, in _nt_comp_table = bytes.maketrans(b'ACBDGHKMNSRUTWVYacbdghkmnsrutwvy', \ AttributeError: type object 'str' has no attribute 'maketrans'

PengXieAMJ commented 5 years ago

Kindly ask for help!

jorvis commented 5 years ago

Try running the script with Python3 instead of Python2.