Skip to content
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

pip install error. RuntimeError: uvloop does not support Windows at the moment #142

Open
oscarwht opened this issue Jan 10, 2025 · 2 comments

Comments

@oscarwht
Copy link

my python version is 3.12.3

(.venv) PS C:...> pip install smolagents
Collecting smolagents
Downloading smolagents-1.1.0-py3-none-any.whl.metadata (7.5 kB)
Requirement already satisfied: torch in c:\coding\gr0wth.venv\lib\site-packages (from smolagents) (2.4.1+cu124)
Requirement already satisfied: torchaudio in c:\coding\gr0wth.venv\lib\site-packages (from smolagents) (2.4.1+cu124)
Requirement already satisfied: torchvision in c:\coding\gr0wth.venv\lib\site-packages (from smolagents) (0.19.1+cu124)
Requirement already satisfied: transformers>=4.0.0 in c:\coding\gr0wth.venv\lib\site-packages (from smolagents) (4.36.2)
Requirement already satisfied: requests>=2.32.3 in c:\coding\gr0wth.venv\lib\site-packages (from smolagents) (2.32.3)
Collecting rich>=13.9.4 (from smolagents)
Using cached rich-13.9.4-py3-none-any.whl.metadata (18 kB)
Collecting pandas>=2.2.3 (from smolagents)
Using cached pandas-2.2.3-cp312-cp312-win_amd64.whl.metadata (19 kB)
Requirement already satisfied: jinja2>=3.1.4 in c:\coding\gr0wth.venv\lib\site-packages (from smolagents) (3.1.4)
Collecting pillow>=11.0.0 (from smolagents)
Using cached pillow-11.1.0-cp312-cp312-win_amd64.whl.metadata (9.3 kB)
Collecting markdownify>=0.14.1 (from smolagents)
Downloading markdownify-0.14.1-py3-none-any.whl.metadata (8.5 kB)
Collecting gradio>=5.8.0 (from smolagents)
Downloading gradio-5.11.0-py3-none-any.whl.metadata (16 kB)
Collecting duckduckgo-search>=6.3.7 (from smolagents)
Downloading duckduckgo_search-7.2.1-py3-none-any.whl.metadata (17 kB)
Collecting python-dotenv>=1.0.1 (from smolagents)
Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)
Collecting e2b-code-interpreter>=1.0.3 (from smolagents)
Downloading e2b_code_interpreter-1.0.3-py3-none-any.whl.metadata (2.6 kB)
Collecting litellm>=1.55.10 (from smolagents)
Downloading litellm-1.57.5-py3-none-any.whl.metadata (36 kB)
Requirement already satisfied: click>=8.1.7 in c:\coding\gr0wth.venv\lib\site-packages (from duckduckgo-search>=6.3.7->smolagents) (8.1.7)
Collecting primp>=0.10.0 (from duckduckgo-search>=6.3.7->smolagents)
Using cached primp-0.10.0-cp38-abi3-win_amd64.whl.metadata (12 kB)
Collecting lxml>=5.3.0 (from duckduckgo-search>=6.3.7->smolagents)
Using cached lxml-5.3.0-cp312-cp312-win_amd64.whl.metadata (3.9 kB)
Requirement already satisfied: attrs>=21.3.0 in c:\coding\gr0wth.venv\lib\site-packages (from e2b-code-interpreter>=1.0.3->smolagents) (24.2.0)
Collecting e2b<2.0.0,>=1.0.4 (from e2b-code-interpreter>=1.0.3->smolagents)
Downloading e2b-1.0.5-py3-none-any.whl.metadata (2.6 kB)
Collecting httpx<1.0.0,>=0.20.0 (from e2b-code-interpreter>=1.0.3->smolagents)
Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
Collecting aiofiles<24.0,>=22.0 (from gradio>=5.8.0->smolagents)
Using cached aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)
Collecting anyio<5.0,>=3.0 (from gradio>=5.8.0->smolagents)
Using cached anyio-4.8.0-py3-none-any.whl.metadata (4.6 kB)
Collecting fastapi<1.0,>=0.115.2 (from gradio>=5.8.0->smolagents)
Using cached fastapi-0.115.6-py3-none-any.whl.metadata (27 kB)
Collecting ffmpy (from gradio>=5.8.0->smolagents)
Downloading ffmpy-0.5.0-py3-none-any.whl.metadata (3.0 kB)
Collecting gradio-client==1.5.3 (from gradio>=5.8.0->smolagents)
Downloading gradio_client-1.5.3-py3-none-any.whl.metadata (7.1 kB)
Requirement already satisfied: huggingface-hub>=0.25.1 in c:\coding\gr0wth.venv\lib\site-packages (from gradio>=5.8.0->smolagents) (0.25.2)
Requirement already satisfied: markupsafe~=2.0 in c:\coding\gr0wth.venv\lib\site-packages (from gradio>=5.8.0->smolagents) (2.1.5)
Requirement already satisfied: numpy<3.0,>=1.0 in c:\coding\gr0wth.venv\lib\site-packages (from gradio>=5.8.0->smolagents) (1.26.4)
Collecting orjson~=3.0 (from gradio>=5.8.0->smolagents)
Downloading orjson-3.10.14-cp312-cp312-win_amd64.whl.metadata (42 kB)
Requirement already satisfied: packaging in c:\coding\gr0wth.venv\lib\site-packages (from gradio>=5.8.0->smolagents) (24.1)
Requirement already satisfied: pydantic>=2.0 in c:\coding\gr0wth.venv\lib\site-packages (from gradio>=5.8.0->smolagents) (2.8.2)
Collecting pydub (from gradio>=5.8.0->smolagents)
Using cached pydub-0.25.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting python-multipart>=0.0.18 (from gradio>=5.8.0->smolagents)
Downloading python_multipart-0.0.20-py3-none-any.whl.metadata (1.8 kB)
Requirement already satisfied: pyyaml<7.0,>=5.0 in c:\coding\gr0wth.venv\lib\site-packages (from gradio>=5.8.0->smolagents) (6.0.2)
Collecting ruff>=0.2.2 (from gradio>=5.8.0->smolagents)
Downloading ruff-0.9.0-py3-none-win_amd64.whl.metadata (26 kB)
Collecting safehttpx<0.2.0,>=0.1.6 (from gradio>=5.8.0->smolagents)
Downloading safehttpx-0.1.6-py3-none-any.whl.metadata (4.2 kB)
Collecting semantic-version~=2.0 (from gradio>=5.8.0->smolagents)
Using cached semantic_version-2.10.0-py2.py3-none-any.whl.metadata (9.7 kB)
Collecting starlette<1.0,>=0.40.0 (from gradio>=5.8.0->smolagents)
Downloading starlette-0.45.2-py3-none-any.whl.metadata (6.3 kB)
Collecting tomlkit<0.14.0,>=0.12.0 (from gradio>=5.8.0->smolagents)
Downloading tomlkit-0.13.2-py3-none-any.whl.metadata (2.7 kB)
Requirement already satisfied: typer<1.0,>=0.12 in c:\coding\gr0wth.venv\lib\site-packages (from gradio>=5.8.0->smolagents) (0.12.3)
Requirement already satisfied: typing-extensions~=4.0 in c:\coding\gr0wth.venv\lib\site-packages (from gradio>=5.8.0->smolagents) (4.12.2)
Collecting uvicorn>=0.14.0 (from gradio>=5.8.0->smolagents)
Downloading uvicorn-0.34.0-py3-none-any.whl.metadata (6.5 kB)
Requirement already satisfied: fsspec in c:\coding\gr0wth.venv\lib\site-packages (from gradio-client==1.5.3->gradio>=5.8.0->smolagents) (2024.6.1)
Collecting websockets<15.0,>=10.0 (from gradio-client==1.5.3->gradio>=5.8.0->smolagents)
Using cached websockets-14.1-cp312-cp312-win_amd64.whl.metadata (6.9 kB)
Requirement already satisfied: aiohttp in c:\coding\gr0wth.venv\lib\site-packages (from litellm>=1.55.10->smolagents) (3.10.10)
Collecting httpx<1.0.0,>=0.20.0 (from e2b-code-interpreter>=1.0.3->smolagents)
Using cached httpx-0.27.2-py3-none-any.whl.metadata (7.1 kB)
Collecting importlib-metadata>=6.8.0 (from litellm>=1.55.10->smolagents)
Using cached importlib_metadata-8.5.0-py3-none-any.whl.metadata (4.8 kB)
Collecting jsonschema<5.0.0,>=4.22.0 (from litellm>=1.55.10->smolagents)
Using cached jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
Collecting openai>=1.55.3 (from litellm>=1.55.10->smolagents)
Downloading openai-1.59.6-py3-none-any.whl.metadata (27 kB)
Requirement already satisfied: tiktoken>=0.7.0 in c:\coding\gr0wth.venv\lib\site-packages (from litellm>=1.55.10->smolagents) (0.8.0)
Requirement already satisfied: tokenizers in c:\coding\gr0wth.venv\lib\site-packages (from litellm>=1.55.10->smolagents) (0.15.2)
Collecting uvloop<0.22.0,>=0.21.0 (from litellm>=1.55.10->smolagents)
Downloading uvloop-0.21.0.tar.gz (2.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 8.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
Traceback (most recent call last):
File "c:\Coding\gr0wth.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "c:\Coding\gr0wth.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Coding\gr0wth.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Oscar\AppData\Local\Temp\pip-build-env-p929xq8_\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
return self.get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Oscar\AppData\Local\Temp\pip-build-env-p929xq8
\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in get_build_requires
self.run_setup()
File "C:\Users\Oscar\AppData\Local\Temp\pip-build-env-p929xq8
\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 8, in
RuntimeError: uvloop does not support Windows at the moment
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

@AngGaGim
Copy link

same questsion

@antoinedelplace
Copy link

I had this error when pip install litellm
This is due to the new version of litellm.
Solved with : pip install litellm==1.57.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants