Problem with a PyInstaller build containing wx\lib\pubsub

David Hughes <[email protected]> Thu, 1 Mar 2018 08:01:27 -0800 (PST)
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
 

I'm experiencing the same problem as reported in:

https://stackoverflow.com/questions/40769018/pyinstaller-and-import-issue-with-wx-lib-pubsub

8006 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. 


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?


David Hughes

Forestfield Software

-- 
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.