fyears / electron-python-example

Electron as GUI of Python Applications
MIT License
2.04k stars 232 forks source link

Compiling for Mac OS #10

Closed syah83 closed 7 years ago

syah83 commented 7 years ago

Hi,

The code works perfect for me in dev version but when I try to package it using electron packager I've got an issue, the result does not show anymore on the packaged app.

If I open it with npm start instead I've got in the renderer console :

Error: Lost remote after 10000ms at Object.createErrorResponse

Could this be an error comming from the python packaged part ?

Some complementary information : I use Mac OS 10.12.5 Sierra with Python 2.7.13 (Anaconda custom) When is try to exec the compiled python api I've got the following error :

./api 1 + 1 ImportError: dlopen(/Users/xxx/Documents/e2p/pycalcdist/api/zmq.backend.cython.error.so, 2): Symbol not found: _zmq_errno Referenced from: /Users/xxx/Documents/e2p/pycalcdist/api/zmq.backend.cython.error.so Expected in: flat namespace in /Users/xxx/Documents/e2p/pycalcdist/api/zmq.backend.cython.error.so Failed to execute script api

I looked for many forums, uninstalled pyzmq and reinstalling it with pip but it didn't work.

UPDATE : I tried with python 3.5 in a conda virual env and it works. Fyi it does not work with python 3.6 because packaging is not yet supported

Thank you for your help,

Oliver

fyears commented 7 years ago

I am sorry that I haven't maintain this repo for a long time. Thank you so much for your update.