<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Terminus">Hi,<br>
remove all zope.interface *.pyc files from the python's site-package
directory.<br>
Rerun application, if it didn't work reinstall zope.interface from
source. <br>
Where is a C module and compilation are different for the PyObjects in
the 2.4 and 2.5 versions.<br>
</font><br>
my list wrote:
<blockquote cite="mid:20080218234253.150210@gmx.net" type="cite">
  <pre wrap="">Hello,
I got an error message when I'm trying to import twisted in python2.5 on a Debian Lenny machine. The error is:

"RunetimeWarning: Python C API version mismacht for module _zoper_interface_coptimizations: This Python has API version 1013, moduel _zope_interface_coptimizations has version 1012." 

I installed python2.5 from source next to the standard debian python2.4 into /usr/local/lib/python2.5, redirect the link /usr/bin/python to /usr/local/bin/python2.5. Thats working, but when I try to import twisted with

"import twisted"

I receive the error above. Importing zope works just fine. All I found on the net was that there might be a problem with the two installations of python next to each other. But if so, how can I get rid of python2.4, because I need python2.5. Is there no chance to use both versions parallel?

The Version of the zopeinterface is 3.3.1-5, python is 2.4.4-7 and 2.5.1-6, twisted is 2.5.0-2.

I am fairly new to Debain and Python and I am really stuck. I hope someone can help me. I would appreciate it big time!

Regards,
Torsten
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
"""
Best regards, 
Alexander Burtsev, 
Web Development Department, TV Channel 'Sport' 
"""</pre>
</body>
</html>