Something has obviously gone very wrong with the build, but if you don’t tell us what you did we can’t tell you what was wrong.
What commands are you running to perform the build? What version of Python? Did you use pip or build.py? Did you start with the source tarball or a git checkout? Did you test the build in-place or install it first? Did you test with a full Python installation or a clean empty virtualenv? Did you clean out any prior wxPython installations before installing this one? Did you capture the build output and look for any errors or warnings that might give some clues?
···
On Saturday, February 3, 2018 at 9:46:29 AM UTC-8, Bazza Hill wrote:
I have built wxPython 4.0.1 from sources (OpenSuse Leap 43.2) and installed in the python3 site-packages directory.
If I try import wx.xrc, then it does not load. If I try import wx._xrc it does load. Is there something up with the module loading?
I have found the App class is missing (after importing wx if I dir(wx) there is no App, but there is PyApp)
After creating and bootstrapping a PyApp object , if I create a Frame object:
On Saturday, February 3, 2018 at 11:20:01 AM UTC-8, Robin Dunn wrote:
On Saturday, February 3, 2018 at 9:46:29 AM UTC-8, Bazza Hill wrote:
I have built wxPython 4.0.1 from sources (OpenSuse Leap 43.2) and installed in the python3 site-packages directory.
If I try import wx.xrc, then it does not load. If I try import wx._xrc it does load. Is there something up with the module loading?
I have found the App class is missing (after importing wx if I dir(wx) there is no App, but there is PyApp)
After creating and bootstrapping a PyApp object , if I create a Frame object:
f = wx.Frame(None)
and then dir(f) there is no Bind method.
Any suggestions as to a reason and solution?
Something has obviously gone very wrong with the build, but if you don’t tell us what you did we can’t tell you what was wrong.
What commands are you running to perform the build? What version of Python? Did you use pip or build.py? Did you start with the source tarball or a git checkout? Did you test the build in-place or install it first? Did you test with a full Python installation or a clean empty virtualenv? Did you clean out any prior wxPython installations before installing this one? Did you capture the build output and look for any errors or warnings that might give some clues?
I just took the tarball and ran (as per instructions) “python3 build.py build”
Then “python3 build.py install”
There were repeated warnings from the sip/cpp build steps because optimisation was not enabled (as far as I can tell this is because -g is set regardless).
(#warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp])
The include path to find wx/setup.h was missing (fixed by copying to the wx/include)
The library path to the libraries built above was missing (fixed by setting LDFLAGS).
Regards
Bazza
···
On Saturday, 3 February 2018 19:20:01 UTC, Robin Dunn wrote:
On Saturday, February 3, 2018 at 9:46:29 AM UTC-8, Bazza Hill wrote:
I have built wxPython 4.0.1 from sources (OpenSuse Leap 43.2) and installed in the python3 site-packages directory.
If I try import wx.xrc, then it does not load. If I try import wx._xrc it does load. Is there something up with the module loading?
I have found the App class is missing (after importing wx if I dir(wx) there is no App, but there is PyApp)
After creating and bootstrapping a PyApp object , if I create a Frame object:
f = wx.Frame(None)
and then dir(f) there is no Bind method.
Any suggestions as to a reason and solution?
Something has obviously gone very wrong with the build, but if you don’t tell us what you did we can’t tell you what was wrong.
What commands are you running to perform the build? What version of Python? Did you use pip or build.py? Did you start with the source tarball or a git checkout? Did you test the build in-place or install it first? Did you test with a full Python installation or a clean empty virtualenv? Did you clean out any prior wxPython installations before installing this one? Did you capture the build output and look for any errors or warnings that might give some clues?