cannot import name IUPAC
1
0
Entering edit mode
9.1 years ago
moran.an ▴ 10

I have this error when I'm trying to use biopython

Traceback (most recent call last):
  File "/usr/bin/presto/FilterSeq.py", line 18, in <module>
        from Bio.Alphabet import IUPAC
ImportError: : cannot import name IUPAC

and some more like this.

Traceback (most recent call last):
  File "/usr/bin/presto/MaskPrimers.py", line 17, in <module>
    from Bio import pairwise2
ImportError: cannot import name pairwise2

Where is my mistake? Maybe I have to install biopython in some other directory?

Thank you

I ran this commands and I had no problem:

python setup.py build
python setup.py test
sudo python setup.py install
presto software-error biopython IUPAC • 2.6k views
ADD COMMENT
0
Entering edit mode
9.1 years ago
moran.an ▴ 10

Problem solved. I've changed the PYTHONPATH to the current directory of biopython.

ADD COMMENT

Login before adding your answer.

Traffic: 2898 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6