wxPython 4.0.1 App object is missing and Bind method is missing from Frame

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

wxPython 4.0.1 App object is missing and Bind method is missing from Frame

Bazza Hill
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?

Thanks Bazza

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython 4.0.1 App object is missing and Bind method is missing from Frame

Robin Dunn
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?

-- 
Robin Dunn
Software Craftsman
http://wxPython.org


--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython 4.0.1 App object is missing and Bind method is missing from Frame

Robin Dunn
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've updated this blog post with some additional build info and steps that may help: https://wxpython.org/blog/2017-08-17-builds-for-linux-with-pip/index.html
 

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython 4.0.1 App object is missing and Bind method is missing from Frame

Robin Dunn
In reply to this post by Robin Dunn
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've updated this blog post with some additional build info and steps that may help: https://wxpython.org/blog/2017-08-17-builds-for-linux-with-pip/index.html

-- 
Robin Dunn
Software Craftsman
http://wxPython.org

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython 4.0.1 App object is missing and Bind method is missing from Frame

Bazza Hill
In reply to this post by Robin Dunn
Robin,

Thanks.

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?

-- 
Robin Dunn
Software Craftsman
<a href="http://wxPython.org" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FwxPython.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHG9kM-NEpJfIvl_lWJvA23SuLjOA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FwxPython.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHG9kM-NEpJfIvl_lWJvA23SuLjOA&#39;;return true;">http://wxPython.org


--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.