Invalid async_mode specified

See original GitHub issue

hello! Everything was OK when I run my python file, but it raised error run after be packed with pyinstaller:

Traceback (most recent call last):

  File "ems\core\task.py", line 67, in add
  File "ems\ems_socket_service.py", line 26, in __init__
  File "site-packages\socketio\server.py", line 72, in __init__
  File "site-packages\engineio\server.py", line 100, in __init__
ValueError: Invalid async_mode specified

the code :self.socketio = socketio.Server(async_mode='gevent')

I tried self.socketio = socketio.Server(), it’s also useless, and i have installed gevent.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:41 (9 by maintainers)

github_iconTop GitHub Comments

13reactions
KITSMaheshChaudharicommented, Apr 11, 2019

just importing gevent from engineio.async_drivers worked for me.

from engineio.async_drivers import gevent

11reactions
yousikucommented, Jul 26, 2016

It works!!! I add ‘engineio.async_gevent’ to hiddenimports in spec file. very, very grateful for your help!! lol hahahahaha

Read more comments on GitHub >

github_iconTop Results From Across the Web

"ValueError: Invalid async_mode specified" when bundling a ...
This troubled me a lot while using pyInstaller. I tried adding many different modules to hidden imports, but realized later that you just ......
Read more >
Developers - Invalid async_mode specified - - Bountysource
hello! Everything was OK when I run my python file, but it raised error run after be packed with pyinstaller:
Read more >
The Socket.IO Server — python-socketio documentation
A non-standard content type can also be specified if needed: ... To request its use explicitly, the async_mode option can be given in...
Read more >
python-socketio Documentation - Read the Docs
can open multiple connections by specifying a different namespace on each. ... To request its use explicitly, the async_mode option can be given...
Read more >
python/8431/python-engineio/engineio/server.py - Program Talk
The first async mode that has all its dependencies. installed is then one that is chosen. ... raise ValueError( 'Invalid async_mode specified' )....
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