-
Notifications
You must be signed in to change notification settings - Fork 50
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
ModuleNotFoundError: No module named 'uvloop' #1066
Comments
Thanks for reporting, @555chy |
PS D:\Downloads\WrenAI-main-2.7\wren-ai-service> pip install uvloop × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. [notice] A new release of pip is available: 24.3.1 -> 25.0.1 × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. 我找到问题了,是uvloop不支持在window上运行 |
PS D:\Downloads\WrenAI-main-2.7\wren-ai-service> poetry lock
Skipping virtualenv creation, as specified in config file.
Resolving dependencies... (3.9s)
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'
The text was updated successfully, but these errors were encountered: