crawl4ai icon indicating copy to clipboard operation
crawl4ai copied to clipboard

uvloop error

Open MSR2201 opened this issue 1 year ago • 4 comments

Collecting tokenizers (from litellm>=1.53.1->crawl4ai) Using cached tokenizers-0.21.0-cp39-abi3-win_amd64.whl.metadata (6.9 kB) Collecting uvloop<0.22.0,>=0.21.0 (from litellm>=1.53.1->crawl4ai) Using cached uvloop-0.21.0.tar.gz (2.5 MB) 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 "D:\Five_minutes\git\router\five-minutes-ai-router-engine\myenv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "D:\Five_minutes\git\router\five-minutes-ai-router-engine\myenv\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 "D:\Five_minutes\git\router\five-minutes-ai-router-engine\myenv\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\sanke\AppData\Local\Temp\pip-build-env-1yyksy4f\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\sanke\AppData\Local\Temp\pip-build-env-1yyksy4f\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires self.run_setup() File "C:\Users\sanke\AppData\Local\Temp\pip-build-env-1yyksy4f\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. error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

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

MSR2201 avatar Jan 10 '25 07:01 MSR2201

pip install --upgrade pip setuptools wheel

me-tusharchandra avatar Jan 10 '25 13:01 me-tusharchandra

try install litellm==1.57.4 > pip install litellm==1.57.4 then install crawl4ai

3mora2 avatar Jan 10 '25 20:01 3mora2

Can you create a new 'venv' and try again?

me-tusharchandra avatar Jan 13 '25 11:01 me-tusharchandra

I think I wait for @MSR2201 provide more details and answer to @me-tusharchandra and @3mora2 first. Guys thx for the support.

unclecode avatar Jan 13 '25 12:01 unclecode

now when i tried to download it again uvloop has not been downloaded is it not needed ?

MSR2201 avatar Jan 24 '25 02:01 MSR2201

@MSR2201 Looks like it was child dependancy of litellm. Did your problem get resolved? Reopen this issue, if it's still causing errors.

aravindkarnam avatar Jan 24 '25 09:01 aravindkarnam