WrenAI icon indicating copy to clipboard operation
WrenAI copied to clipboard

ModuleNotFoundError: No module named 'uvloop'

Open 555chy opened this issue 10 months ago • 1 comments

PS D:\Downloads\WrenAI-main-2.7\wren-ai-service> poetry lock Skipping virtualenv creation, as specified in config file. Resolving dependencies... (3.8s)

PS D:\Downloads\WrenAI-main-2.7\wren-ai-service> poetry install Skipping virtualenv creation, as specified in config file. Installing dependencies from lock file No dependencies to install or update

PS D:\Downloads\WrenAI-main-2.7\wren-ai-service> poetry run python -m src.main Skipping virtualenv creation, as specified in config file. Warning: Configuration file config.yaml not found. Using default settings. WARNING: Current configuration will not reload as not all conditions are met, please refer to documentation. Traceback (most recent call last): File "", line 198, in run_module_as_main File "", line 88, in run_code File "D:\Downloads\WrenAI-main-2.7\wren-ai-service\src_main.py", line 91, in uvicorn.run( File "D:\software\Python\Lib\site-packages\uvicorn\main.py", line 577, in run server.run() File "D:\software\Python\Lib\site-packages\uvicorn\server.py", line 64, in run self.config.setup_event_loop() File "D:\software\Python\Lib\site-packages\uvicorn\config.py", line 475, in setup_event_loop loop_setup: Callable | None = import_from_string(LOOP_SETUPS[self.loop]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\software\Python\Lib\site-packages\uvicorn\importer.py", line 22, in import_from_string raise exc from None File "D:\software\Python\Lib\site-packages\uvicorn\importer.py", line 19, in import_from_string module = importlib.import_module(module_str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\software\Python\Lib\importlib_init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\software\Python\Lib\site-packages\uvicorn\loops\uvloop.py", line 3, in import uvloop ModuleNotFoundError: No module named 'uvloop'

PS D:\Downloads\WrenAI-main-2.7\wren-ai-service> poetry show uvloop Skipping virtualenv creation, as specified in config file. name : uvloop version : 0.21.0 description : Fast implementation of asyncio event loop on top of libuv

required by

  • uvicorn requires >=0.14.0,<0.15.0 || >0.15.0,<0.15.1 || >0.15.1

555chy avatar Feb 19 '25 02:02 555chy

The root cause is that uvloop doesn't support running on Windows.

from: https://github.com/Canner/wren-engine/issues/1066

wwwy3y3 avatar Mar 06 '25 09:03 wwwy3y3