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
Comments
This should be corrected in the development version since wx3 was released. 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 |
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? |
FWIW, this wxPython download information page: Currently (Jul 20, 2015) points to this wxPython download page for Mac OS X, Cocoa, Python 2.7: Installing that and the latest gui2py I found, from this page: 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. |
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
The text was updated successfully, but these errors were encountered: