[chimera-dev] chimera import from unmodified python 2.5

Ondrej Marsalek ondrej.marsalek at uochb.cas.cz
Wed Aug 6 01:34:10 PDT 2008


hello everyone,

first of all, i would like to say thank you for using vanilla python
2.5, i think this could be quite useful.

unfortunately, there is one problem that keeps me from using chimera
from a session of my regular python 2.5 installation (on ubuntu 8.04).
after setting paths properly, an attempt to import chimera (or the
binary module _chimera) produces the following exception:


In [1]: import chimera
---------------------------------------------------------------------------
<type 'exceptions.ImportError'>           Traceback (most recent call last)

/home/andy/<ipython console> in <module>()

/home/andy/CHIMERA/share/chimera/__init__.py in <module>()

<type 'exceptions.ImportError'>: /opt/chimera/lib/libwrappy2.so:
undefined symbol: PyUnicodeUCS2_AsUTF8String

In [2]: import _chimera
---------------------------------------------------------------------------
<type 'exceptions.ImportError'>           Traceback (most recent call last)

/home/andy/<ipython console> in <module>()

<type 'exceptions.ImportError'>: /opt/chimera/lib/libwrappy2.so:
undefined symbol: PyUnicodeUCS2_AsUTF8String


it seems that the python 2.5 provided with chimera is compiled with
different unicode settings than the one in ubuntu. the shared chimera
objects are compiled against that version of python and therefore
can't be used from my normal python. the only way i see around this at
the moment is to recompile chimera, but i wanted to leave that as the
very last option.

i would appreciate any suggestions, as a straightforward way to use
chimera from my normal python would be really neat. i'll be glad to
provide details if anyone is interested.

regards,
ondrej marsalek



More information about the Chimera-dev mailing list