import gevent.monkey
gevent.monkey.patch_all()
from flask_socketio import SocketIO
socketio = SocketIO(app, cors_allowed_origins="*", async_mode="gevent")
< /code>
Alle Abhängigkeiten sind installiert (GeVent == 25.8.2, Gevent-Webocket == 0.10.1, Greenlet == 3.2.4, Flask-socketio == 5.3.6 usw.).
Eventlet wurde entfernt, um Konflikte zu vermeiden.hiddenimports = [
'gevent',
'gevent.monkey',
'gevent.threading',
'gevent._socket3',
'gevent._threading',
'gevent._semaphore',
'gevent.builtins',
'geventwebsocket',
'greenlet',
'engineio.async_drivers.threading',
'engineio.async_drivers.gevent',
'engineio.async_drivers.gevent_uwsgi',
'engineio.async_drivers.aiohttp',
'asyncio',
]
< /code>
Beim Ausführen von Pyinstaller sehe ich auch Warnungen wie: < /p>
ERROR: Hidden import 'engineio.async_drivers.asyncio' not found
< /code>
Aber ich habe verifiziert, dass Asyncio unter:
c: \ user \ innopharm \ appdata \ local \ programs \ python \ python311 \ lib \ asyncio < /p>
Warum ausgeführt wird. .exe?Traceback (most recent call last): File "runapp.py", line 2, in File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module File "theone\__init__.py", line 97, in File "flask_socketio\__init__.py", line 187, in __init__ File "flask_socketio\__init__.py", line 243, in init_app File "socketio\base_server.py", line 31, in __init__ File "engineio\base_server.py", line 81, in __init__ ValueError: Invalid async_mode specified [PYI-9784:ERROR] Failed to execute script 'runapp' due to unhandled exception!
Ich baue ein Python 3.11 Flask-Socketio-Projekt in ein .xe mit Pyinstaller auf Jenkins (Windows 10).[code]ValueError: Invalid async_mode specified [/code] Ich zwinge async_mode = "GeVent" in meinem __init __.[code]import gevent.monkey gevent.monkey.patch_all()
from flask_socketio import SocketIO socketio = SocketIO(app, cors_allowed_origins="*", async_mode="gevent") < /code> Alle Abhängigkeiten sind installiert (GeVent == 25.8.2, Gevent-Webocket == 0.10.1, Greenlet == 3.2.4, Flask-socketio == 5.3.6 usw.). Eventlet wurde entfernt, um Konflikte zu vermeiden.hiddenimports = [ 'gevent', 'gevent.monkey', 'gevent.threading', 'gevent._socket3', 'gevent._threading', 'gevent._semaphore', 'gevent.builtins', 'geventwebsocket', 'greenlet', 'engineio.async_drivers.threading', 'engineio.async_drivers.gevent', 'engineio.async_drivers.gevent_uwsgi', 'engineio.async_drivers.aiohttp', 'asyncio', ] < /code> Beim Ausführen von Pyinstaller sehe ich auch Warnungen wie: < /p> ERROR: Hidden import 'engineio.async_drivers.asyncio' not found < /code> Aber ich habe verifiziert, dass Asyncio unter: c: \ user \ innopharm \ appdata \ local \ programs \ python \ python311 \ lib \ asyncio < /p> Warum ausgeführt wird. .exe?Traceback (most recent call last): File "runapp.py", line 2, in File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module File "theone\__init__.py", line 97, in File "flask_socketio\__init__.py", line 187, in __init__ File "flask_socketio\__init__.py", line 243, in init_app File "socketio\base_server.py", line 31, in __init__ File "engineio\base_server.py", line 81, in __init__ ValueError: Invalid async_mode specified [PYI-9784:ERROR] Failed to execute script 'runapp' due to unhandled exception! [/code] Ich gehe davon aus, dass der exe
Ich habe Jenkins auf meinem lokalen Computer von Port 8080 ausgelegt, die Pipeline ist über das Plugin mit meinem Github angeschlossen, und ich habe bestätigt, dass Jenkins meine Jenkinsfile auf...
Ich führe einen Jenkins -Controller auf einem Linux -Computer mit OpenJDK 17.0.14 aus, und mein Build -Agent ist eine Windows -Maschine mit OpenJDK 17.0.12. Ich habe ein Problem während des...
Aktuelle Spring -Boot -Version: 3.4.2 Testng -Version: 7.10.2 Feder -Test: 6.2.2 (aus der Eltern Spring Depeedcy)
Nach dem Frühjahr 3.2.0 Wir haben gewarnt, dass @Mockbean und @spybean veraltet...
Ich habe versucht, Pandas Version 1.1.4 zu importieren, habe aber die folgende Fehlermeldung erhalten: ValueError: Die Größe von numpy.dtype wurde geändert, weist möglicherweise auf eine binäre...