Comments (7)
Same problem here.
from electron-python-example.
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.
I tried running the executable directly and it fails with error
from electron-python-example.
I am also getting same issue, it seems zerorpc don't work in exe file. Anyone found solution?
from electron-python-example.
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.
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.
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)
- python virtualenv HOT 3
- Won't connect to zerorpc HOT 3
- No handlers could be found for logger "zerorpc.channel" HOT 1
- getting node version mismatch on zerorpc HOT 4
- Update `package.json` for packaging as application HOT 2
- zerorpc is not included while packaging HOT 9
- Module mismatch following readme instructions HOT 4
- How to use the latest electron HOT 1
- After packaged the Electron project, which directory should I put in of my packaged python file? HOT 2
- How do I inckude
- How do I include Sqlite3 to my Python and electron.js Application HOT 1
- Module parse failed HOT 1
- Instructions for Windows fails HOT 2
- Installation Issue - electron version problem
- npm install fails HOT 1
- How to call javascript from python
- repo https://github.com/fyears/zerorpc-node.git is gone HOT 3
- running python threads
- npm install fails on Windows 11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-python-example.