Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wx version bug (module adv not found) -- fixed! #1

Open
Phoenix-Heart opened this issue Mar 6, 2014 · 3 comments
Open

wx version bug (module adv not found) -- fixed! #1

Phoenix-Heart opened this issue Mar 6, 2014 · 3 comments

Comments

@Phoenix-Heart
Copy link

There is a major bug where this code is incompatible with recent versions of wx classic, which is incidentally the version gui2py's installation guide is linking to as well.

The origin of this bug is due to the wx library REVERTING their modifications to newer updates to preserve backwards compatibility. The restructured project has been RENAMED to phoenix, but uses the same version numbers as classic wx.

There appeared to be many lines that were attempting to check for phoenix versions with the code

wx.VERSION > (2, 9, 5)

Since classic versions are now up to 3.0.0.1 anyone who has recently installed or updated wx will get errors trying to use gui2py ..the most common error I saw was module adv not found.

To correct this bug, the code should instead look for 'classic' or 'phoenix' such as:

wx.version().find('classic')==-1:

I was able to get gui2py working on my machine by applying this fix to the files. Due to the frequency of this bug in the project, I decided to create a script to do the editing for me. You can find it here: https://github.com/nightlily/Fixr

@reingart
Copy link
Owner

reingart commented Mar 6, 2014

This should be corrected in the development version since wx3 was released.
Did you check out the latest changes from the repository?
Actually, you can see at the following code being used:

if wx.VERSION < (2, 9, 5) or not 'phoenix' in wx.version():
    ...

https://github.com/reingart/gui2py/blob/master/gui/controls/textbox.py

Feel free to make a PR if you think there is a better way
Thanks for your contribution!

@Phoenix-Heart
Copy link
Author

Ah I see, yes I must have been using an older version. Actually I was under the assumption that this project keeps the up-to-date files on murcurial and I'm not familiar with the platform. Is that still the case?

@larryy
Copy link

larryy commented Jul 20, 2015

FWIW, this wxPython download information page:
http://www.wxpython.org/download.php#osx

Currently (Jul 20, 2015) points to this wxPython download page for Mac OS X, Cocoa, Python 2.7:
http://downloads.sourceforge.net/wxpython/wxPython3.0-osx-3.0.2.0-cocoa-py2.7.dmg

Installing that and the latest gui2py I found, from this page:
https://code.google.com/p/gui2py/downloads/detail?name=gui2py-0.9.3-py2x.tar.gz&can=2&q=

Results in a gui2py installation that fails with the adv module not found error. Running your script on the gui2py directory fixes the problem. Still. Kudos, and thanks!

Note: I see now there's a reingart/gui2py here on github and there have been a few updates since the code.google.com version. Perhaps the fix isn't needed with that version, but I haven't tried it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants