Chris Barker wrote:
Thanks Chris
I just had to wait for a reboot as one of the demos killed Linux.
Yes you are right it say 2.5.2.7. How do I get it to use the right version?
first try this:
import wxversion
wxversion.select("2.6")IF that fails, you either don't have wxversion installed (I'm not sure about the tarballs, but it may not contain the wx-common stuff, though it looks like it should)
Look in your site-packages directory. You should have a couple directories like:
wx-2.5.3-gtk2-unicode
The versioned install directories and wxversion.py didn't appear until the 2.5.3.1 release, so if he has 2.5.2.7 installed then there will be a wx package dir directly in site-packages. That will be found before the version in the wx.pth file. I see two alternatives for Bob to make a smooth transition to 2.6:
1. Uninstall 2.5.2.7. If it was originally installed from an rpm then you can use rpm to uninstall it. Just do "rpm -qa | grep wxPy" to see the installed pacakge names. If you built and installed it from source then you'll need to hunt down and remove the files. The wx and wxPython pacakge dirs in the site-packages dir, and also the wxWidgets shared libraries.
2. Convert the 2.5.2.7 install into a multi-version compatible dir structure by moving site-packages/wx and site-packages/wxPython into a site-packages/wx-2.5.2 directory.
ยทยทยท
Bob.Cowdery@CGI-Europe.com wrote:
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!