Pyinstaller and import issue with wx.lib.pubsub

后端 未结 4 1409
滥情空心
滥情空心 2021-01-06 18:58

My Python GUI app, works perfectly but when I try to create an executable I tried with pyinstaller (3.3.dev0+483c819) command:

pyinstaller gui_app.py
         


        
4条回答
  •  太阳男子
    2021-01-06 19:13

    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!

提交回复
热议问题