Python C API version mismatch
Bug #114930 reported by
Andrew Straw
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clearsilver (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
trac (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-clearsilver
If I install python-clearsilver and run:
python -c 'import neo_cgi'
I get the following:
-c:1: RuntimeWarning: Python C API version mismatch for module neo_util: This Python has API version 1013, module neo_util has version 1012.
-c:1: RuntimeWarning: Python C API version mismatch for module neo_cs: This Python has API version 1013, module neo_cs has version 1012.
-c:1: RuntimeWarning: Python C API version mismatch for module neo_cgi: This Python has API version 1013, module neo_cgi has version 1012.
Changed in clearsilver: | |
status: | New → Confirmed |
To post a comment you must log in.
I get the same.
I installed Trac which installed python-clearsilver. The offending shared lib is neo_cgi.so python2. 4/site- packages/ neo_cgi. so python2. 5/site- packages/ neo_cgi. so
You can see from locate neo_cgi.so that it is located
/usr/lib/
/usr/lib/
(or you could check in the properties of the package python-clearsilver in Synaptic or whichever)
A fix is to download the latest clearsilver sources from http:// www.clearsilver .net/downloads/ clearsilver- 0.10.4. tar.gz
tar zxvf it, yadda yadda yadda and then configure it using ./configure --disable-wdb --disable- compression --disable-perl --with- python= $(which python)
(I disable wdb because I don't know what it is and I disable compression because it complains about not finding libz even though it is there - grrr -
dpkg-query -S /usr/lib/libz.so.1 gives zlib1g: /usr/lib/libz.so.1 and I disable perl because perl scares me)
then make and now there is a python directory, go into it and cp -i neo_cgi.so /usr/lib/ python2. 5/site- packages/ neo_cgi. so to overwrite the 2.5 version which in Gutsy development is the latest python (I suppose you could build a 2.4 version because python2.4 -c 'import neo_cgi' gives the same errors as reported above but as trac uses 2.5 so meh...
I would attach the .so but it's 1/2 a meg :) python2. 5/site- packages/ neo_cgi. so
-rw-r--r-- 1 root root 496350 2007-06-09 15:25 /usr/lib/