[portland] Upgrading from Python-2.4 to -2.5

Robin Dunn robin at alldunn.com
Mon Dec 29 19:50:24 CET 2008


Rich Shepard wrote:
>   I hope all of you are enjoying the holidays and the disappearance of the
> snow.
> 
>   I'll make time this week to complete the transition from 2.4 to 2.5 as
> initiated by my upgrade to Slackware-12.x. As I make changes so that my
> applications continue to run, I have two questions for you python gurus
> here:
> 
>   1) How do I migrate packages from 2.4-site-packages to 2.5-site-packages?
> 

Install new Python 2.5 versions of the packages, or build install them 
from source using Python 2.5.


>   2) What, if anything, should I do about this console message I see now 
> and
> then when I kill X prior to logging off?
> 
> /usr/lib/python2.4/site-packages/dbus/_dbus.py:45: RuntimeWarning: Python C
> API version mismatch for module dbus_bindings: This
> Python has API version 1013, module dbus_bindings has version 1012.
>   import dbus_bindings
> /usr/lib/python2.4/site-packages/dbus/_dbus.py:45: RuntimeWarning: Python C
> API version mismatch for module dbus_bindings: This
> Python has API version 1013, module dbus_bindings has version 1012.
>   import dbus_bindings
> warning: python-dbus not installed.
> warning: python-dbus not installed.
> error: dbus failed to load (python-dbus ver. 0.80+ required). Exiting...

The same thing.  The message means that Python 2.5 is using a binary 
extension module (dbus_bindings) that was built with Python 2.4.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!



More information about the Portland mailing list