Another q regarding expat

Martin von Loewis loewis at informatik.hu-berlin.de
Fri Oct 5 18:06:42 CEST 2001


Rajarshi Guha <rxg218 at psu.edu> writes:

> /usr/lib/python2.2/pyexpat.py:85: RuntimeWarning: Python C API version 
> mismatch for module dcpyexpat: This Python has API version 1011, module 
> dcpyexpat has version 1010.
[...]
> I get the mess above! I've noticed similar errors with other packages 
> (especially pygtk) - how can I fix version mismatches?

Only through recompilation.

> The second error seems more involved? I have expat installed - am I missing 
> any extra files?

If you have libexpat.{a,so} installed, you still need to recompile
pyexpat.so; you cannot use a pyexpat RPM from a different Python
release.

After you've installed libexpat, you need to recompile Python, or
atleast re-run Python's setup.py to get a recompiled pyexpat.so.

Regards,
Martin




More information about the Python-list mailing list