tonysimpson / nanomsg-python

nanomsg wrapper for python with multiple backends (CPython and ctypes) should support 2/3 and Pypy
MIT License
382 stars 85 forks source link

Can not exec after pyinstaller package code #78

Open clementzhao opened 4 years ago

clementzhao commented 4 years ago

Error log: ImportError: No module named '_nanomsg_ctypes' UserWarning: Could not load the default wrapper for your platform: cpy, performance may be affected!

I fixed it in nanomsg_wrappers/init.py add 2 lines: import _nanomsg_ctypes import _nanomsg_cpy

tonysimpson commented 4 years ago

Is this because pyinstaller doesn't know to include the _nanomsg_ctypes package because it thinks its not used. Is there some way to tell pyinstaller to include it anyway?