[portland] Upgrading from Python-2.4 to -2.5

Rich Shepard rshepard at appl-ecosys.com
Wed Jan 14 19:26:44 CET 2009


On Wed, 14 Jan 2009, Joshua D. Drake wrote:

> what happens when you do:
>
> jd at jd-laptop:~/repos/nwea/row_crypto_poc/scripts$ python2.5
> Python 2.5.2 (r252:60911, Oct  5 2008, 19:29:17)
> [GCC 4.3.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import dbus
>>>>

Joshua,

   It's unhappy:

[rshepard at salmo ~]$ python
Python 2.5.2 (r252:60911, Aug  3 2008, 15:34:23) 
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
/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
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python2.4/site-packages/dbus/__init__.py", line 1, in
<module>
     from _dbus import *
   File "/usr/lib/python2.4/site-packages/dbus/_dbus.py", line 48, in
<module>
     from proxies import *
   File "/usr/lib/python2.4/site-packages/dbus/proxies.py", line 2, in
<module>
     import introspect_parser
   File "/usr/lib/python2.4/site-packages/dbus/introspect_parser.py", line 1,
in <module>
     import libxml2
ImportError: Bad magic number in
/usr/lib/python2.4/site-packages/libxml2.pyc
>>>

   So I need to point python to the 2.5 site-packages rather than the 2.4
site-packages.

Rich


-- 
Richard B. Shepard, Ph.D.               |  Integrity            Credibility
Applied Ecosystem Services, Inc.        |            Innovation
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863


More information about the Portland mailing list