-
-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SocketIO signal issue #387
Comments
What webserver are you using? Can you show me the code that runs as a response of the |
I am using pywin32 hadnle 'start': Inside Myservice class SvcDoRun function starts actual server. And this is server class
Resolving issue is no longer needed for me because I used pywsgi gevent server instead. |
Thanks. I've written miguelgrinberg/python-engineio#147 to keep track of this issue, so I'll close this one here. |
Hi,
I am trying to run some application using python-socketio as Windows Service and while executing this line into cmd: 'python myapplication.py start' I am getting following error.
File "C:\Users\w23209\Documents\Subversion\Webservice\Digital Factory Web Service\src\frontend\server.py", line 14, in <module> from socketio.server import Server File "C:\Users\w23209\Documents\Subversion\Webservice\venv\Lib\site-packages\socketio\__init__.py", line 3, in <module> from .client import Client File "C:\Users\w23209\Documents\Subversion\Webservice\venv\Lib\site-packages\socketio\client.py", line 6, in <module> import engineio File "C:\Users\w23209\Documents\Subversion\Webservice\venv\Lib\site-packages\engineio\__init__.py", line 3, in <module> from .client import Client File "C:\Users\w23209\Documents\Subversion\Webservice\venv\Lib\site-packages\engineio\client.py", line 49, in <module> original_signal_handler = signal.signal(signal.SIGINT, signal_handler) File "C:\Program Files\Python37\Lib\signal.py", line 47, in signal handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler)) ValueError: signal only works in main thread %2: %3
Any idea what can cause such error?
Python 3.7.4, running from virtualenv
The text was updated successfully, but these errors were encountered: