Invalid async_mode specified
See original GitHub issuehello! 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:
- Created 7 years ago
- Reactions:8
- Comments:41 (9 by maintainers)
Top 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 >
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 Free
Top 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
just importing gevent from engineio.async_drivers worked for me.
from engineio.async_drivers import geventIt works!!! I add ‘engineio.async_gevent’ to hiddenimports in spec file. very, very grateful for your help!! lol hahahahaha