[BioPython] Having some issue with unicode and Bio.PDB

Michiel De Hoon mdehoon at c2b2.columbia.edu
Mon Oct 3 11:58:20 EDT 2005


  File
"/users2/invites/wong/apps/lib/python2.3/site-packages/Bio/PDB/__init__.py",
line 22, in ?
    from Polypeptide import PPBuilder, CaPPBuilder, is_aa, standard_aa_names
  File
"/users2/invites/wong/apps/lib/python2.3/site-packages/Bio/PDB/Polypeptide.py
",
line 5, in ?
    from Bio.Seq import Seq
  File "/users2/invites/wong/apps/lib/python2.3/site-packages/Bio/Seq.py",
line1, in ?
    import string, array
ImportError: /users2/invites/wong/apps/lib/python2.4/lib-dynload/array.so:
undefined symbol: PyUnicodeUCS2_FromUnicode


You are mixing python2.3 and python2.4 (see the paths in the traceout). You
should reinstall Biopython with python2.4. From the traceback, it seems that
you have Biopython for python2.3 (or, for some reason, python imports
python2.3's Biopython instead of python2.4's Biopython).

--Michiel.



More information about the BioPython mailing list