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

WONG Hua wong at ebgm.jussieu.fr
Tue Oct 4 04:35:44 EDT 2005


After your mail, I cleaned up my pythons and re-builded every modules using python 2.4.

Now, instead of the previous error, it gives me:
###############################################################
Traceback (most recent call last):
  File "exportPDBv1_0.py", line 6, in ?
  File "/users2/invites/wong/apps/lib/python2.4/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.4/site-packages/Bio/PDB/Polypeptide.py", line 5, in ?
    from Bio.Seq import Seq
  File "/users2/invites/wong/apps/lib/python2.4/site-packages/Bio/Seq.py", line1, in ?
    import string, array
ImportError: /users2/invites/wong/apps/lib/python2.4/lib-dynload/array.so: undefined symbol: _PyArg_NoKeywords
###############################################################

It does this when I import Bio.PDB. Not when I import Bio only.


On Mon, Oct 03, 2005 at 11:58:20AM -0400, Michiel De Hoon wrote:
>   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