question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'gevent.__hub_local'

See original GitHub issue

Hi! 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:closed
  • Created 5 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Marcelpv96commented, Jul 19, 2018

@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

0reactions
ChrisKnottcommented, Feb 11, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found