You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use pyinstaller to pack my source and I found this problem.
And I debug I found that
try:
from . importlibzmqexceptImportError:
pass
In pyinstaller,import error when i execute the pyinstaller executable file.
os.getcwd() is to my execute location,not include libzmq.so。
when I change the location to the folder where include libzmq.so..I could not import libzmq.so ethir
when I copy libzmq.so to excutable root folder and import again.
it is ok,but stranger
this is fix code
other information
pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)
pyinstaller 3.3
Darwin sckMacBook-Pro.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
zmq:0.0.0
The text was updated successfully, but these errors were encountered:
friddle
changed the title
pyinstaller pack qmz error
pyinstaller pack zmq error
Nov 3, 2017
Thanks for answer me.
Forgive my poor english.
I try pack using Pyinstaller in Linux is ok.failed in mac
In mac folder like(I have left my mac in offices,so i draw it)
[executable_folder]
----zmq
-----[libzmq.so]
-----zmq
-------[backend]
-------[python]
----[zmq.backend.*]
And when I debug .it into the zmq folder to import libzmq.so.but failed
I check it in Ubuntu.libzmq.so not in sub folder.so it work ok
https://github.com/zeromq/pyzmq/blob/master/zmq/__init__.py
when i use pyinstaller to pack my source and I found this problem.
And I debug I found that
In pyinstaller,import error when i execute the pyinstaller executable file.
os.getcwd() is to my execute location,not include libzmq.so。
when I change the location to the folder where include libzmq.so..I could not import libzmq.so ethir
when I copy libzmq.so to excutable root folder and import again.
it is ok,but stranger
this is fix code
please fix this problem.
other information
pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)
pyinstaller 3.3
Darwin sckMacBook-Pro.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
zmq:0.0.0
The text was updated successfully, but these errors were encountered: