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

[BUG] uvloop does not support Windows at the moment #1455

Open
2 of 3 tasks
yiyiyi0817 opened this issue Jan 16, 2025 · 0 comments
Open
2 of 3 tasks

[BUG] uvloop does not support Windows at the moment #1455

yiyiyi0817 opened this issue Jan 16, 2025 · 0 comments
Labels
bug Something isn't working call for contribution P0 Task with high level priority
Milestone

Comments

@yiyiyi0817
Copy link
Member

yiyiyi0817 commented Jan 16, 2025

Required prerequisites

What version of camel are you using?

0.2.16 (git clone from the repo in 2025.01.16)

System information

3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)] win32
0.2.16

Problem description

When running poetry install, an error occurs while installing openai because uvloop, which is not compatible with Windows, fails to install.

Reproducible example code

Command lines:

poetry install --with dev,docs -E all

Steps to reproduce:

  1. git clone https://github.com/camel-ai/camel.git
  2. cd camel
  3. poetry shell
  4. poetry install --with dev,docs -E all

Traceback

- Installing uvloop (0.21.0): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke get_requires_for_build_wheel
  
  Traceback (most recent call last):
    File "C:\Users\Ziyi Yang\AppData\Roaming\pypoetry\venv\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 373, in <module>
      main()
    File "C:\Users\Ziyi Yang\AppData\Roaming\pypoetry\venv\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 357, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\Ziyi Yang\AppData\Roaming\pypoetry\venv\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 134, in get_requires_for_build_wheel
      return hook(config_settings)
             ^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\ZIYIYA~1\AppData\Local\Temp\tmpn_vqi2rz\.venv\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\ZIYIYA~1\AppData\Local\Temp\tmpn_vqi2rz\.venv\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
      self.run_setup()
    File "C:\Users\ZIYIYA~1\AppData\Local\Temp\tmpn_vqi2rz\.venv\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
      exec(code, locals())
    File "<string>", line 8, in <module>
  RuntimeError: uvloop does not support Windows at the moment
  

  at ~\AppData\Roaming\pypoetry\venv\Lib\site-packages\poetry\installation\chef.py:164 in _prepare
      160161│                 error = ChefBuildError("\n\n".join(message_parts))
      162163if error is not None:
    → 164raise error from None
      165166return path
      167168def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with uvloop (0.21.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "uvloop (==0.21.0)"'.

Expected behavior

No response

Additional context

The poetry show --tree

├── openai >=1.55.3
│ ├── anyio >=3.5.0,<5
│ │ ├── exceptiongroup >=1.0.2
│ │ ├── idna >=2.8
│ │ ├── sniffio >=1.1
│ │ └── typing-extensions >=4.5
│ ├── distro >=1.7.0,<2
│ ├── httpx >=0.23.0,<1
│ │ ├── anyio * (circular dependency aborted here)
│ │ ├── certifi *
│ │ ├── h2 >=3,<5
│ │ │ ├── hpack >=4.0,<5
│ │ │ └── hyperframe >=6.0,<7
│ │ ├── httpcore ==1.*
│ │ │ ├── certifi * (circular dependency aborted here)
│ │ │ └── h11 >=0.13,<0.15
│ │ ├── idna * (circular dependency aborted here)
│ │ └── sniffio * (circular dependency aborted here)
│ ├── jiter >=0.4.0,<1
│ ├── pydantic >=1.9.0,<3
│ │ ├── annotated-types >=0.6.0
│ │ ├── pydantic-core 2.23.4
│ │ │ └── typing-extensions >=4.6.0,<4.7.0 || >4.7.0 (circular dependency aborted here)
│ │ └── typing-extensions >=4.6.1 (circular dependency aborted here)
│ ├── sniffio * (circular dependency aborted here)
│ ├── tqdm >4
│ │ └── colorama *
│ └── typing-extensions >=4.11,<5 (circular dependency aborted here)
├── pydantic >=2.0.0,<3.0.0
│ ├── annotated-types >=0.6.0
│ ├── pydantic-core 2.23.4
│ │ └── typing-extensions >=4.6.0,<4.7.0 || >4.7.0
│ └── typing-extensions >=4.6.1 (circular dependency aborted here)
├── python-dotenv >=0.2.0
├── tiktoken >=0.7.0
│ ├── regex >=2022.1.18
│ └── requests >=2.26.0
│ ├── certifi >=2017.4.17
│ ├── charset-normalizer >=2,<4
│ ├── idna >=2.5,<4
│ ├── pysocks >=1.5.6,<1.5.7 || >1.5.7
│ └── urllib3 >=1.21.1,<3
│ └── pysocks >=1.5.6,<1.5.7 || >1.5.7,<2.0 (circular dependency aborted here)
├── tokenizers *
│ └── huggingface-hub >=0.16.4,<1.0
│ ├── filelock *
│ ├── fsspec >=2023.5.0
│ │ └── aiohttp <4.0.0a0 || >4.0.0a0,<4.0.0a1 || >4.0.0a1
│ │ ├── aiohappyeyeballs >=2.3.0
│ │ ├── aiosignal >=1.1.2
│ │ │ └── frozenlist >=1.1.0
│ │ ├── async-timeout >=4.0,<6.0
│ │ ├── attrs >=17.3.0
│ │ ├── frozenlist >=1.1.1 (circular dependency aborted here)
│ │ ├── multidict >=4.5,<7.0
│ │ │ └── typing-extensions >=4.1.0
│ │ ├── propcache >=0.2.0
│ │ └── yarl >=1.17.0,<2.0
│ │ ├── idna >=2.0
│ │ ├── multidict >=4.0 (circular dependency aborted here)
│ │ └── propcache >=0.2.0 (circular dependency aborted here)
│ ├── packaging >=20.9
│ ├── pyyaml >=5.1
│ ├── requests *
│ │ ├── certifi >=2017.4.17
│ │ ├── charset-normalizer >=2,<4
│ │ ├── idna >=2.5,<4 (circular dependency aborted here)
│ │ ├── pysocks >=1.5.6,<1.5.7 || >1.5.7
│ │ └── urllib3 >=1.21.1,<3
│ │ └── pysocks >=1.5.6,<1.5.7 || >1.5.7,<2.0 (circular dependency aborted here)
│ ├── tqdm >=4.42.1
│ │ └── colorama *
│ └── typing-extensions >=3.7.4.3 (circular dependency aborted here)
└── uvloop >=0.21.0,<0.22.0

@yiyiyi0817 yiyiyi0817 added the bug Something isn't working label Jan 16, 2025
@yiyiyi0817 yiyiyi0817 moved this to Backlog in Project Camel Jan 16, 2025
@Wendong-Fan Wendong-Fan added call for contribution P0 Task with high level priority labels Jan 26, 2025
@Wendong-Fan Wendong-Fan added this to the Sprint 22 milestone Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working call for contribution P0 Task with high level priority
Projects
Status: Backlog
Development

No branches or pull requests

2 participants