Hi, I have python2.7.5 32 bit and I tried to use wxpython. I downloaded and installed the wxPython2.8-win32 unicode version. After the installation I tried some example and it did not work. It could not load wx.Frame for example.
After searching, I found out that if I add this at the beginning of the application it works:
import wxversion
wxversion.select(‘2.8’)
To me there is something broken because I have only one version installed. Any ideas?
This seems to cause problem for pyinstaller as well.
I tried 2.9 with the same result. I uninstall 2.8 first.
···
On Tuesday, October 15, 2013 11:51:41 AM UTC-7, Frederic Turmel wrote:
Hi, I have python2.7.5 32 bit and I tried to use wxpython. I downloaded and installed the wxPython2.8-win32 unicode version. After the installation I tried some example and it did not work. It could not load wx.Frame for example.
After searching, I found out that if I add this at the beginning of the application it works:
import wxversion
wxversion.select(‘2.8’)
To me there is something broken because I have only one version installed. Any ideas?
This seems to cause problem for pyinstaller as well.
I tried 2.9 with the same result. I uninstall 2.8 first.
On Tuesday, October 15, 2013 11:51:41 AM UTC-7, Frederic Turmel wrote:
Hi, I have python2.7.5 32 bit and I tried to use wxpython. I downloaded and installed the wxPython2.8-win32 unicode version. After the installation I tried some example and it did not work. It could not load wx.Frame for example.
After searching, I found out that if I add this at the beginning of the application it works:
import wxversion
wxversion.select(‘2.8’)
To me there is something broken because I have only one version installed. Any ideas?
This seems to cause problem for pyinstaller as well.
Thanks
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
It should “just work”. I have it installed on Win7 (32-bit) with no issues.
If it doesn’t, perhaps something is amiss with your Python installation. Did you get it from Python.org?
I hope this helps a little. Good luck.
Cheers,
Scott.
On Tue, Oct 15, 2013 at 3:11 PM, Frederic Turmel fred....@gmail.com wrote:
I tried 2.9 with the same result. I uninstall 2.8 first.
On Tuesday, October 15, 2013 11:51:41 AM UTC-7, Frederic Turmel wrote:
Hi, I have python2.7.5 32 bit and I tried to use wxpython. I downloaded and installed the wxPython2.8-win32 unicode version. After the installation I tried some example and it did not work. It could not load wx.Frame for example.
After searching, I found out that if I add this at the beginning of the application it works:
import wxversion
wxversion.select(‘2.8’)
To me there is something broken because I have only one version installed. Any ideas?
This seems to cause problem for pyinstaller as well.
Thanks
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
It should “just work”. I have it installed on Win7 (32-bit) with no issues.
If it doesn’t, perhaps something is amiss with your Python installation. Did you get it from Python.org?
I hope this helps a little. Good luck.
Cheers,
Scott.
On Tue, Oct 15, 2013 at 3:11 PM, Frederic Turmel fred....@gmail.com wrote:
I tried 2.9 with the same result. I uninstall 2.8 first.
On Tuesday, October 15, 2013 11:51:41 AM UTC-7, Frederic Turmel wrote:
Hi, I have python2.7.5 32 bit and I tried to use wxpython. I downloaded and installed the wxPython2.8-win32 unicode version. After the installation I tried some example and it did not work. It could not load wx.Frame for example.
After searching, I found out that if I add this at the beginning of the application it works:
import wxversion
wxversion.select(‘2.8’)
To me there is something broken because I have only one version installed. Any ideas?
This seems to cause problem for pyinstaller as well.
Thanks
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
Thanks for everybody suggestion. It is possible that there is a ghost in the system. I did check and look at the python -v output. Everything look good.
I found a way to get it to work with the import wxversion and pyinstaller so i’m good to go for now. Even if I don’t know why I need to have this workaround it is good enough for now. If I ever find I will share…
Thanks
···
On Tuesday, October 15, 2013 2:55:12 PM UTC-7, Michael Ross wrote:
On Tue, 15 Oct 2013 22:37:53 +0200, Frederic Turmel fred....@gmail.com wrote:
Yes and yes. However I have windows 64bit. Python 32 bits with wxpython 32 bits
This ( 32bit-Python 2.7.5 and 32bit-wxPython on Win7-64 ) runs here without any problem.
Maybe check your Python installation folder for leftovers from previous installs?
I’m thinking maybe old .pth or .egg files from an old wxPython installation which were not properly removed.
Michael
On Tuesday, October 15, 2013 1:05:58 PM UTC-7, grun...@gmail.com wrote:
It should “just work”. I have it installed on Win7 (32-bit) with no issues.
If it doesn’t, perhaps something is amiss with your Python installation. Did you get it from Python.org?
I hope this helps a little. Good luck.
Cheers,
Scott.
On Tue, Oct 15, 2013 at 3:11 PM, Frederic Turmel fred....@gmail.com wrote:
I tried 2.9 with the same result. I uninstall 2.8 first.
On Tuesday, October 15, 2013 11:51:41 AM UTC-7, Frederic Turmel wrote:
Hi, I have python2.7.5 32 bit and I tried to use wxpython. I downloaded and installed the wxPython2.8-win32 unicode version. After the installation I tried some example and it did not work. It could not load wx.Frame for example.
After searching, I found out that if I add this at the beginning of the application it works:
import wxversion
wxversion.select(‘2.8’)
To me there is something broken because I have only one version installed. Any ideas?
This seems to cause problem for pyinstaller as well.
Thanks
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
Thanks for everybody suggestion. It is possible that there is a ghost in the system. I did check and look at the python -v output. Everything look good.
I found a way to get it to work with the import wxversion and pyinstaller so i’m good to go for now. Even if I don’t know why I need to have this workaround it is good enough for now. If I ever find I will share…
Thanks
On Tuesday, October 15, 2013 2:55:12 PM UTC-7, Michael Ross wrote:
On Tue, 15 Oct 2013 22:37:53 +0200, Frederic Turmel fred....@gmail.com wrote:
Yes and yes. However I have windows 64bit. Python 32 bits with wxpython 32 bits
This ( 32bit-Python 2.7.5 and 32bit-wxPython on Win7-64 ) runs here without any problem.
Maybe check your Python installation folder for leftovers from previous installs?
I’m thinking maybe old .pth or .egg files from an old wxPython installation which were not properly removed.
Michael
On Tuesday, October 15, 2013 1:05:58 PM UTC-7, grun...@gmail.com wrote:
It should “just work”. I have it installed on Win7 (32-bit) with no issues.
If it doesn’t, perhaps something is amiss with your Python installation. Did you get it from Python.org?
I hope this helps a little. Good luck.
Cheers,
Scott.
On Tue, Oct 15, 2013 at 3:11 PM, Frederic Turmel fred....@gmail.com wrote:
I tried 2.9 with the same result. I uninstall 2.8 first.
On Tuesday, October 15, 2013 11:51:41 AM UTC-7, Frederic Turmel wrote:
Hi, I have python2.7.5 32 bit and I tried to use wxpython. I downloaded and installed the wxPython2.8-win32 unicode version. After the installation I tried some example and it did not work. It could not load wx.Frame for example.
After searching, I found out that if I add this at the beginning of the application it works:
import wxversion
wxversion.select(‘2.8’)
To me there is something broken because I have only one version installed. Any ideas?
This seems to cause problem for pyinstaller as well.
Thanks
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
Hi, I have python2.7.5 32 bit and I tried to use wxpython. I downloaded
and installed the wxPython2.8-win32 unicode version. After the
installation I tried some example and it did not work. It could not load
wx.Frame for example.
After searching, I found out that if I add this at the beginning of the
application it works:
import wxversion
wxversion.select('2.8')
To me there is something broken because I have only one version
installed. Any ideas?
This seems to cause problem for pyinstaller as well.
In the installer there is an option to "Make this the default wxPython" or something like that. If that is checked then it will install wx.pth file that adds wxPython's folder to the sys.path. Without it then you will either need to add it to the sys.path yourself (like you did with wxversion.select) or have some other wxPython install which did install the wx.pth file.