ModuleNotFoundError: No module named 'gevent.__hub_local'
See original GitHub issueHi! when building a distributable binary, and try to execute it the following error appear:
Traceback (most recent call last):
File "hello.py", line 1, in <module>
File "/home/pc-ia/.local/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "eel/__init__.py", line 2, in <module>
File "/home/pc-ia/.local/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "gevent/__init__.py", line 87, in <module>
File "/home/pc-ia/.local/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "gevent/_hub_local.py", line 101, in <module>
File "gevent/_util.py", line 105, in import_c_accel
File "importlib/__init__.py", line 126, in import_module
ModuleNotFoundError: No module named 'gevent.__hub_local'
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (1 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'gevent.__ ...
Hi! when building a distributable binary, and try to execute it the following error appear: Traceback (most recent call last): File ...
Read more >python 2.7 - no module named gevent even though it is installed
Working in a Python virtual environment in Ubuntu 16.04 I got the following results: $ python -m pip install gevent Requirement already ...
Read more >ImportError: No module named gevent - Ask Ubuntu
You may try to install gevent using the following command sudo apt-get install python-gevent python-gevent-websocket.
Read more >ModuleNotFoundError: No module named 'gevent'
Hi all, I'm fairly new to web development, and this hopefully has a simple solution, but I'm trying to run a .py script...
Read more >Python Script Importerror: No Module Named 'Webbot' When ...
Python answers related to ModuleNotFoundError: No module named 'png' a problem of predicting whether a student succeed or not based of his GPA...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sedir I do not know why it appeared … but I fixed it by installing these packages with this version: gevent==1.2.2 Eel==0.9.7 gevent-websocket==0.10.1 greenlet==0.4.13 PyInstaller==3.3.1
The reason for using the
-m eel
syntax is that it automatically includes some necessary modules that pyinstaller leaves out.If you look at the code you can see the actual pyinstaller command that it calls
https://github.com/ChrisKnott/Eel/blob/master/eel/__main__.py
I don’t think pyinstaller is clever enough to know that Eel uses gevent and bottle, which is why you need the
--hidden-import
part