[Chimera-users] new version available
David E. Konerding
dekonerding at lbl.gov
Mon Oct 24 12:48:15 PDT 2005
Charlie Moad wrote:
>Also, here is a case scenario. I can build matplotlib
>(matplotlib.sf.net) with the following command:
>
>CPPFLAGS="-I/usr/include/python2.4" /usr/local/chimera/bin/python2.4
>setup.py install
>
>I have python2.4.2 installed, so I just use those headers. This
>works. Now when I try to use matplotlib I get an unresolved symbol,
>"PyUnicodeUCS4_AsUnicode" from one of its shared libraries. This
>symbol is located in libpython2.4.so, which is not in the chimera
>bundle. I can work around this by launching chimera with:
>
>LD_PRELOAD="/usr/lib/python2.4/config/libpython2.4.so" chimera
>
>This is obviously a temporary work-around. I would hope windows won't
>be this complicated. Any suggestions on how to better address an
>issue like this?
>
>
This can't be a good solution. The symbol PyUnicodeUCS4_AsUnicode
indicates your system Python that was compiled with
--enable-unicode=ucs4 (enabling 4-byte Unicode strings). The Python
binary that came with Chimera on my system
was compiled with --enable-unicode=ucs2.
When you compiled matplotlib with your system python, it read the system
python headers and made some references to
the Python 4-byte unicode functions. I'd bet dollars to donuts that if
you attempted to do anythign with Unicode
in matplotlib from that point you'd experience some problems.
Please try downloading the Python headers for Chimera, install those,
and build/install matplotlib using the Chimera python.
Dave
More information about the Chimera-users
mailing list