You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings, suddenly I get errors from gevent, when I use flask_socketio, when I terminate the local server with CTRL + C, I get errors, for example if I have "debug=True" in Flask, this error appears, Additionally, it seems that the same websocket connection does not work, but a few days ago I developed another application with websocket and did not get the problem, I reinstalled all Python, the libaries, tried downloading the version, but the error persists. I hope someone can help me.
gevent version: 24.2.1
Flask-SocketIO 5.3.6
Python version: 3.12.3 and 3.12.4
Operating System: Windows 11 Pro
Traceback (most recent call last):
File "C:\Users\diego\AppData\Local\Programs\Python\Python312\Lib\site-packages\gevent\_ffi\loop.py", line 270, in python_check_callbackdefpython_check_callback(self, watcher_ptr): # pylint:disable=unused-argument
KeyboardInterrupt
2024-06-25T15:39:01Z
Exception ignored in: <function _removeHandlerRef at 0x000001B7C66E45E0>
Traceback (most recent call last):
File "C:\Users\diego\AppData\Local\Programs\Python\Python312\Lib\logging\__init__.py", line 884, in _removeHandlerRef
File "C:\Users\diego\AppData\Local\Programs\Python\Python312\Lib\logging\__init__.py", line 241, in _acquireLock
File "C:\Users\diego\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 198, in acquire
File "C:\Users\diego\AppData\Local\Programs\Python\Python312\Lib\site-packages\gevent\thread.py", line 67, in get_identTypeError: 'NoneType' object is not callable
With debug=False:
Traceback (most recent call last):
File "C:\Users\diego\AppData\Local\Programs\Python\Python312\Lib\site-packages\gevent\_ffi\loop.py", line 270, in python_check_callbackdefpython_check_callback(self, watcher_ptr): # pylint:disable=unused-argument
KeyboardInterrupt
2024-06-25T15:40:01Z
Traceback (most recent call last):
File "c:\xampp\htdocs\ambulancetogo\python\reconocimientofacial\reconocimiento\capasalidareconocimiento.py", line 166, in <module>
socketio.run(reconfacial, debug=False, port=port)
File "C:\Users\diego\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask_socketio\__init__.py", line 718, in runself.wsgi_server.serve_forever()
File "C:\Users\diego\AppData\Local\Programs\Python\Python312\Lib\site-packages\gevent\baseserver.py", line 400, in serve_foreverself._stop_event.wait()
File "src\\gevent\\event.py", line 163, in gevent._gevent_cevent.Event.wait
File "src\\gevent\\_abstract_linkable.py", line 521, in gevent._gevent_c_abstract_linkable.AbstractLinkable._wait
File "src\\gevent\\_abstract_linkable.py", line 487, in gevent._gevent_c_abstract_linkable.AbstractLinkable._wait_core
File "src\\gevent\\_abstract_linkable.py", line 490, in gevent._gevent_c_abstract_linkable.AbstractLinkable._wait_core
File "src\\gevent\\_abstract_linkable.py", line 442, in gevent._gevent_c_abstract_linkable.AbstractLinkable._AbstractLinkable__wait_to_be_notified
File "src\\gevent\\_abstract_linkable.py", line 451, in gevent._gevent_c_abstract_linkable.AbstractLinkable._switch_to_hub
File "src\\gevent\\_greenlet_primitives.py", line 61, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch
File "src\\gevent\\_greenlet_primitives.py", line 65, in gevent._gevent_c_greenlet_primitives.SwitchOutGreenletWithLoop.switch
File "src\\gevent\\_gevent_c_greenlet_primitives.pxd", line 35, in gevent._gevent_c_greenlet_primitives._greenlet_switch
File "C:\Users\diego\AppData\Local\Programs\Python\Python312\Lib\site-packages\gevent\_ffi\loop.py", line 270, in python_check_callbackdefpython_check_callback(self, watcher_ptr): # pylint:disable=unused-argument
KeyboardInterrupt
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description:
Greetings, suddenly I get errors from gevent, when I use flask_socketio, when I terminate the local server with CTRL + C, I get errors, for example if I have "debug=True" in Flask, this error appears, Additionally, it seems that the same websocket connection does not work, but a few days ago I developed another application with websocket and did not get the problem, I reinstalled all Python, the libaries, tried downloading the version, but the error persists. I hope someone can help me.
What I've run:
Also make the post on gevent's github, in case they can help with the problem:
gevent/gevent#2042
Beta Was this translation helpful? Give feedback.
All reactions