[Pythonmac-SIG] wxversion disappeared?
Ronald Oussoren
ronaldoussoren at mac.com
Thu May 19 17:03:40 CEST 2005
On 19-mei-2005, at 16:28, Charles Hartman wrote:
>
> I did install TigerPython23Compat, but I just reinstalled to be
> sure. Then I moved Extras.pth out of /Library/Python/2.3/site-
> packages. Now when I run Python (2.4.1), wxversion still can't be
> found for import; wxPython can be imported, but it's still 2.5.5.1,
> not 2.6.0.
Python 2.4.1 does not look at /Library/Python/2.3, that's only for
Python 2.3.x.
I've installed wxPython2.6-osx-unicode-2.6.0.0-macosx10.3-py2.3.dmg
and TigerPython23Compat
$ ls /Library/Python/2.3
site-packages wx.pth
wx-2.6-mac-unicode wxversion.py
$ cd /Library/Python/2.3/site-packages
$ mv Extras.pth Extra.pth.sv
$ python2.3
Python 2.3.5 (#1, Mar 20 2005, 20:38:20)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.__version__
'2.6.0.0'
>>>
python2.3 correctly picks up the new version of wxPython. If you want
to use wxPython 2.6 in python 2.3 and in python 2.4 you'll have to
download two installers, one for every version of python.
Ronald
>
> On May 19, 2005, at 10:19 AM, Ronald Oussoren wrote:
>
>
>> On 19-mei-2005, at 16:09, Charles Hartman wrote:
>>
>>
>>> On May 19, 2005, at 9:55 AM, Ronald Oussoren wrote:
>>>
>>>
>>>> On 19-mei-2005, at 15:51, Charles Hartman wrote:
>>>>
>>>>>
>>>>> (I also want the Tiger-distributed Python 2.3.5 to be able to call
>>>>> wxPython 2.6 rather than the seriously hobbled 2.5.3.1, and I'm
>>>>> not
>>>>> having much luck with that either.)
>>>>>
>>>>
>>>> "rm /Library/Python/2.3/site-packages/Extras.pth" will remove the
>>>> version of wxPython that's included with the OS from sys.path. You
>>>> should then be able to install a new version (or see the new
>>>> version
>>>> if you already installed it).
>>>>
>>>>
>>> Though I'm reluctant to *change* what Apple installs (glad to
>>> *add* to it of course), I tried what you suggest. But all that
>>> does is make wx entirely invisible to Python.
>>>
>>>
>>
>> At least we're making some progress :-)
>>
>> How did you install the new wxPython? Did you install a binairy
>> distribution for Panther? If you did you should also install
>> TigerPython23Compat from http://pythonmac.org/packages. The
>> location of the side-packages directory changed in 10.4.
>>
>> BTW. Removing files in /Library is perfectly valid, changing stuff
>> in /System is a no-no. It is possible to remove Apple's version of
>> wxPython without removing Extras.pth, but I won't tell you how ;-)
>>
>> Ronald
>>
>>
>
>
More information about the Pythonmac-SIG
mailing list