Giter VIP home page Giter VIP logo

Comments (7)

jhampl avatar jhampl commented on June 1, 2024

Same problem here.

from electron-python-example.

rishantagarwal avatar rishantagarwal commented on June 1, 2024

I appreciate all the effort and hardwork put in by you @fyears . This is a great open source project and is quite helpful.

I am getting the same error as mentioned above except after i package the app, it is not able to connect to the server. Do you have any suggestions for this ? @fyears

from electron-python-example.

rishantagarwal avatar rishantagarwal commented on June 1, 2024

I tried running the executable directly and it fails with error
screen shot 2018-09-07 at 17 20 23

from electron-python-example.

kamranIoTDeveloper avatar kamranIoTDeveloper commented on June 1, 2024

I am also getting same issue, it seems zerorpc don't work in exe file. Anyone found solution?

from electron-python-example.

brainytwoo avatar brainytwoo commented on June 1, 2024

Not sure if the issue is exactly the same but I was getting the same error. I fixed it by installing zerorpc via pip. pip install zerorpc

from electron-python-example.

tepsukka avatar tepsukka commented on June 1, 2024

I compared an old working package to a newer one that didn't work, and noticed that some folders and files were missing. I'm not sure which of the following fixed it for me, but here's what I did:

  • Uninstalled every other python version that I had
  • Reinstalled Python 3.6.3, installed it for every user and chose to install pip, tcl, tkinter, with precompiled standard library
  • Reinstalled all the other libraries with pip, such as pyinstaller, requests, etc
  • Reinstalled pypiwin32 with pip

For reference, here's a comparison between a working and non working file/folder structure

WORKING (Python 3.6.3)

certifi
Include
lib2to3
tcl
tk
zmq
api.exe
api.exe.manifest
base_library.zip
gevent.libev.corecext.pyd
gevent._semaphore.pyd
greenlet.pyd
msgpack._packer.pyd
msgpack._unpacker.pyd
MSVCP140.dll
pyexpat.pyd
python36.dll
pywintypes36.dll
select.pyd
tcl86t.dll
tk86t.dll
unicodedata.pyd
VCRUNTIME140.dll
win32api.pyd
win32evtlog.pyd
win32wnet.pyd
zmq.backend.cython.constants.pyd
zmq.backend.cython.context.pyd
zmq.backend.cython.error.pyd
zmq.backend.cython.message.pyd
zmq.backend.cython.socket.pyd
zmq.backend.cython.utils.pyd
zmq.backend.cython._device.pyd
zmq.backend.cython._poll.pyd
zmq.backend.cython._version.pyd
_bz2.pyd
_ctypes.pyd
_decimal.pyd
_elementtree.pyd
_hashlib.pyd
_lzma.pyd
_multiprocessing.pyd
_socket.pyd
_ssl.pyd
_testcapi.pyd
_tkinter.pyd

NOT WORKING (Python 3.8)

api.exe
api.exe.manifest
base_library.zip
libcrypto-1_1.dll
libffi-7.dll
libssl-1_1.dll
pyexpat.pyd
python38.dll
select.pyd
unicodedata.pyd
VCRUNTIME140.dll
_asyncio.pyd
_bz2.pyd
_ctypes.pyd
_decimal.pyd
_elementtree.pyd
_hashlib.pyd
_lzma.pyd
_multiprocessing.pyd
_overlapped.pyd
_queue.pyd
_socket.pyd
_ssl.pyd

WORKING AFTER REINSTALLATION (Python 3.6.3)

certifi
gevent
gevent-1.4.0-py3.6.egg-info
Include
lib2to3
msgpack
tcl
tk
win32com
zmq
api.exe
api.exe.manifest
base_library.zip
greenlet.cp36-win_amd64.pyd
mfc140u.dll
MSVCP140.dll
pyexpat.pyd
python36.dll
pythoncom36.dll
pywintypes36.dll
select.pyd
tcl86t.dll
tk86t.dll
unicodedata.pyd
VCRUNTIME140.dll
win32api.pyd
win32evtlog.pyd
win32trace.pyd
win32ui.pyd
win32wnet.pyd
_bz2.pyd
_cffi_backend.cp36-win_amd64.pyd
_ctypes.pyd
_decimal.pyd
_elementtree.pyd
_hashlib.pyd
_lzma.pyd
_multiprocessing.pyd
_socket.pyd
_ssl.pyd
_testcapi.pyd
_tkinter.pyd
_win32sysloader.pyd

from electron-python-example.

tramngo1603 avatar tramngo1603 commented on June 1, 2024

I also experienced this issue when completing the tutorial with Windows 10.
The specific problem I experienced was with the .bind method. The python program (bundled as an .exe file with pyinstaller) stopped immediately without logging any errors when it called the .bind method.
When I used pdb.set_trace() to debug the issue, this is what I found when stepping through the program:

> .\dist\add\add.exe 4242                                               
> c:\users\tram ngo\desktop\src\electron-python\add.py(14)main()
-> s.bind(addr)
(Pdb) s
--Call--
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\socket.py(42)bind()
(Pdb) s
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\socket.py(43)bind()
(Pdb) s
--Call--
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(322)bind()
(Pdb) s
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(323)bind()
(Pdb) s
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(324)bind()
(Pdb) s
--Call--
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(305)_resolve_endpoint()
(Pdb) list
[EOF]
(Pdb) n
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(306)_resolve_endpoint()
(Pdb) list
[EOF]
(Pdb) n
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(307)_resolve_endpoint()
(Pdb) n
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(308)_resolve_endpoint()
(Pdb) n
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(313)_resolve_endpoint()
(Pdb) n
--Return--
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(313)_resolve_endpoint()->['tcp://127.0.0.1:4242']
(Pdb) list
[EOF]
(Pdb) n
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(325)bind()
(Pdb) s
> c:\users\tram ngo\desktop\src\electron-python\site-packages\zerorpc\events.py(326)bind()

How I fixed it:

Originally I used Python 2.7 to install Zerorpc and pyinstaller. When I switched to Python 3.7 (in a virtualenv), it worked! I'm not sure why upgrading python version fixed the issue.

from electron-python-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.