Pyinstaller Build auf Jenkins: valueError: UngültigPython

Python-Programme
Anonymous
 Pyinstaller Build auf Jenkins: valueError: Ungültig

Post by Anonymous »

Ich baue ein Python 3.11 Flask-Socketio-Projekt in ein .xe mit Pyinstaller auf Jenkins (Windows 10).

Code: Select all

ValueError: Invalid async_mode specified
Ich zwinge async_mode = "GeVent" in meinem __init __.

Code: Select all

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 gehe davon aus, dass der exe

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post