wxversion problem

Hi, Chris. I know these are two different installs; my original question was how to make use of wxversion to use one or the other, because after installing 2.8.8.1 I am no longer able to use 2.8.7.1 in any way (i.e. I can't use wxversion) even though the installs are both present. Instead, when I try to use 2.8.7.1 I get an error message ("Incompatible library version: _core_.so requires version 5.0.0 or later, but libwx_macud-2.8.0.dylib provides version 2.6.0"). By default the script uses 2.8.8.1, which works fine. Unfortunately 2.8.8.1 changes the appearance of some dialogs significantly and I want to stick with 2.8.7.1 until I can figure out why.

Tracking it further it seems that the 2.8.8.1 install did stomp on the 2.8.7.1 in that it may have deleted
/usr/local/lib/wxPython-unicode-2.8.7.1
and substituted
/usr/local/lib/wxPython-unicode-2.8.8.1

I can't find wxPython 2.8.7.1 for download any more (is it available? Seems to be well hidden if so -- I can find the 2.6 series but not earlier 2.8 series); however, I think I should have /usr/local/lib/wxPython-unicode-2.8.7.1 in my backups at home.

However, I'm still guessing on this, so if anyone has an authoritative answer I'd appreciate it.

Thanks,

Ian

···

Date: Wed, 10 Sep 2008 09:40:55 -0700
From: Christopher Barker <Chris.Barker@noaa.gov>
Subject: Re: [wxpython-users] Re: wxversion problem
To: wxpython-users@lists.wxwidgets.org
Message-ID: <48C7F897.8040509@noaa.gov>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Ian York wrote:

Hi, Mathias. Thanks for the suggestion, but I don't think that's the
problem. As I said, wx v. 2.8.7.1 is in
/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/
whereas 2.8.8.1 is in
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac-unicode/

Unless there are some common files used by each, installed elsewhere,
that did get overwritten, I don't think this is the issue.

Actually, that could be the problem. with 2.8.8.1 ( I think), Robin
changed where stuff was installed, so that the System python on 10.5
(the one in System) could share the install with the /Library python.

The actual packages go into:

/usr/local/lib/wxPython-unicode-2.8.8.1/lib/python2.5/site-packages

and sys.path is manipulated so that python can find them.

note that your paths above:
/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac-unicode/

are from two different python installs -- the System on is Apple's and
the /Library one is the python.org one -- at any time you should be
using one or the other -- which are you using?

try:

python

import sys
sys.path

and you'll get an idea.

-Chris

--
     Ian York (iayork@iayork.com) <http://www.iayork.com/&gt;
  "-but as he was a York, I am rather inclined to suppose him a
   very respectable Man." -Jane Austen, The History of England

Ian York wrote:

Hi, Chris. I know these are two different installs;

I was trying to make two points:

1) you have two different installs of Python , not just two of wxPython -- which do you want to use?

2) the way wxPython was installed has recently changed, which may be the source of the confusion, though I'm not offering a solution if its is -- sorry!

One more point:

I think wxversion is designed to select among minor versions (2.8 vs. 27, but may not work right for selecting among sub-versions (2.8.7 vs. 2.8.8), but It's been a while...

Tracking it further it seems that the 2.8.8.1 install did stomp on the 2.8.7.1 in that it may have deleted
/usr/local/lib/wxPython-unicode-2.8.7.1
and substituted
/usr/local/lib/wxPython-unicode-2.8.8.1

I don't think it should have done that, but I recently did a complete re-install of my system, so I can't check that now.

I can't find wxPython 2.8.7.1 for download any more (is it available?

It should be there in sourceforge -- keep poking around. Look under the download menu, for browse packages, then click on wxPython, and it gives you a big list (with some Javascript that is hanging firefox3 -- arrgg!) that has all the older versions.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Christopher Barker wrote:

It should be there in sourceforge -- keep poking around. Look under the download menu, for browse packages, then click on wxPython, and it gives you a big list (with some Javascript that is hanging firefox3 -- arrgg!)

It hangs Safari too -- double arrg!!

I suppose I should figure out how to post a bug report to sourceforge...

-CHB

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Ian & Chris,

nload any more (is it available?

It should be there in sourceforge -- keep poking around. Look under the download menu, for browse packages, then click on wxPython, and it gives you a big list (with some Javascript that is hanging firefox3 -- arrgg!) that has all the older versions.

-Chris

For some reason, the SourceForge link is under the "Prebuilt Binaries" section only: Redirecting...

Click on that and then click on the word labeled "wxPython" which should take you here:

This doesn't hang my Firefox 3, but I do get a javascript busy message if I try to use the back button. Loads alright in Opera as well, but kind of slowly.

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org

Chris,

I can't find wxPython 2.8.7.1 for download any more (is it available?

It should be there in sourceforge -- keep poking around. Look under the download menu, for browse packages, then click on wxPython, and it gives you a big list (with some Javascript that is hanging firefox3 -- arrgg!) that has all the older versions.

-Chris

I take that back. If I wait, it does make Firefox mostly unresponsive. If I close the tab, it tells me there's some javascript that's busy and I have to stop the script to make everything better. Not quite as bad as hanging FF3, but close.

Mike

Christopher Barker wrote:

Ian York wrote:

Hi, Chris. I know these are two different installs;

I was trying to make two points:

1) you have two different installs of Python , not just two of wxPython -- which do you want to use?

2) the way wxPython was installed has recently changed, which may be the source of the confusion, though I'm not offering a solution if its is -- sorry!

Yes. See my other message.

One more point:

I think wxversion is designed to select among minor versions (2.8 vs. 27, but may not work right for selecting among sub-versions (2.8.7 vs. 2.8.8), but It's been a while...

It can, but not by default. There are a couple factors in play here:

1. The install uses a package folder name with just "2.8" in it, so that is all the resolution that wxversion is able to use, unless you rename the folders to use all 4 components of the version number. It was done like this because the stable release series is supposed to be very compatible between releases, so moving forward in the series should almost always work fine with apps written with a previous release in the series.

2. By default, all 2.8.*.* versions will be considered an upgrade of the any earlier 2.8.*.* versions, so the Mac Installer app will remove the files from the previous install. We would have to change the base name of the app in order for Installer to consider them to be separate and to treat them as independent installs. Renaming existing install folders before installing the new version should take care of this too.

3. The aforementioned problem with the new installation locations.

···

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