I have several versions of wxpython on my computer (MacOS10.5.4, Intel
core 2 duo). I've been using 2.8.7.1, which is in
/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/
My script has had in it these lines:
import wxversion
wxversion.select("2.8.7")
and has been running correctly.
Recently I installed 2.8.8.1. That installed itself in
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac-unicode/
Things still run correctly (so long as I don't use wxversion).
2.8.8.1 is the default version. However, whether I try wxversion for
2.8.7.1 or 2.8.8.1 I get an importError. For example, from the
interpreter:
~ > python
Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import wxversion
wxversion.select("2.8.7")
import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/wx/__init__.py",
line 45, in <module>
from wx._core import *
File "/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py",
line 4, in <module>
import _core_
ImportError: dlopen(/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/wx/_core_.so,
2): Library not loaded:
/usr/local/lib/wxPython-unicode-2.8.7.1/lib/libwx_macud-2.8.0.dylib
Referenced from:
/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/wx/_core_.so
Reason: Incompatible library version: _core_.so requires version
5.0.0 or later, but libwx_macud-2.8.0.dylib provides version 2.6.0
~ > python
Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import wxversion
wxversion.select("2.8.8")
import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/wx/__init__.py",
line 45, in <module>
from wx._core import *
File "/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py",
line 4, in <module>
import _core_
ImportError: dlopen(/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/wx/_core_.so,
2): Library not loaded:
/usr/local/lib/wxPython-unicode-2.8.7.1/lib/libwx_macud-2.8.0.dylib
Referenced from:
/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/wx/_core_.so
Reason: Incompatible library version: _core_.so requires version
5.0.0 or later, but libwx_macud-2.8.0.dylib provides version 2.6.0
What am I doing wrong? I need to have 2.8.7.1 accessible for a while longer.
Thanks,
Ian
···
--
Ian York (iayork@iayork.com) <http://www.iayork.com/>
"-but as he was a York, I am rather inclined to suppose him a
very respectable Man." -Jane Austen, The History of England