Re: Problem with a PyInstaller build containing wx\lib\pubsub
Robin Dunn <[email protected]> Sat, 3 Mar 2018 19:07:35 -0800 (PST)
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
On Friday, March 2, 2018 at 9:21:40 AM UTC-8, David Hughes wrote: > > I posted the message below to wxPython-dev yesterday via Google Groups and > it immediately deleted it (Any reason why?) . But I received it as an email > because I have asked it to Automatically subscribe me to email updates > when I post to a topic - David > It was apparently the first time you had posted to wxPython-dev as it needed to be approved, which I did. Not sure why it would have disappeared. > > On 01/03/2018 16:01, David Hughes wrote: > > I'm experiencing the same problem as reported in: > https://stackoverflow.com/questions/40769018/pyinstaller-and-import-issue-with-wx-lib-pubsub8006 WARNING: Hidden import "wx.lib.pubsub.core.publisher" not found!8008 WARNING: Hidden import "wx.lib.pubsub.core.listenerimpl" not found!8009 WARNING: Hidden import "wx.lib.pubsub.core.publishermixin" not found!8009 WARNING: Hidden import "wx.lib.pubsub.core.datamsg" not found!8009 WARNING: Hidden import "wx.lib.pubsub.core.topicargspecimpl" not found!8009 WARNING: Hidden import "wx.lib.pubsub.core.topicmgrimpl" not found! > > <snip> > > Apparently the import of those modules is done in the subfolder kwargs, > but those files actually need to be placed in the root folder. > > So I just copied those files from > > Lib\site-packages\wx-3.0-msw\wx\lib\pubsub\core\kwargs > > to > > Lib\site-packages\wx-3.0-msw\wx\lib\pubsub\core > > and now IT WORKS! > > > Although the above refers to wxPython Classic, the same occurs in wxPython > 4 and copying the files up from kwargs resolves the problem.I copied rather > than moved them in case pubsub relies on them being in kwargs. > > IIRC it's due to some dynamic imports happening which tools like PyInstaller can't detect. > > The current arrangement works fine for wxPython itself, but in the > interests of "good neighbours", should I raise this as an issue in > Github/Phoenix? > > It would probably be better to report it upstream at https://github.com/schollii/pypubsub -- Robin Dunn Software Craftsman http://wxPython.org <http://wxpython.org/> -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.