karthik-codex / Autogen_GraphRAG_Ollama

Microsoft's GraphRAG + AutoGen + Ollama + Chainlit = Fully Local & Free Multi-Agent RAG Superbot
508 stars 102 forks source link

Installation error MacOS #25

Open pallyndr opened 5 days ago

pallyndr commented 5 days ago

Error when installing:

Collecting gevent<23.0.0,>=22.10.2 (from chainlit->-r requirements.txt (line 5)) Downloading gevent-22.10.2.tar.gz (6.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.6/6.6 MB 28.2 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 ╰─> [47 lines of output] Compiling src/gevent/resolver/cares.pyx because it changed. [1/1] Cythonizing src/gevent/resolver/cares.pyx performance hint: src/gevent/libev/corecext.pyx:1339:0: Exception check on '_syserr_cb' will always require the GIL to be acquired. Possible solutions:

  1. Declare '_syserr_cb' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
  2. Use an 'int' return type on '_syserr_cb' to allow an error code to be returned.

    Error compiling Cython file:

    ... cdef tuple integer_types

    if sys.version_info[0] >= 3: integer_types = int, else: integer_types = (int, long) ^

    src/gevent/libev/corecext.pyx:60:26: undeclared name not builtin: long Compiling src/gevent/libev/corecext.pyx because it changed. [1/1] Cythonizing src/gevent/libev/corecext.pyx Traceback (most recent call last): File "/Users/pallyndr/miniconda3/envs/RAG_agents/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/Users/pallyndr/miniconda3/envs/RAG_agents/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(*hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pallyndr/miniconda3/envs/RAG_agents/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/t4/rc75kz1j2jb7x35s_vcxj9xm0000gn/T/pip-build-env-eyvmbsto/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/t4/rc75kz1j2jb7x35s_vcxj9xm0000gn/T/pip-build-env-eyvmbsto/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires self.run_setup() File "/private/var/folders/t4/rc75kz1j2jb7x35s_vcxj9xm0000gn/T/pip-build-env-eyvmbsto/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup exec(code, locals()) File "", line 61, in File "/private/var/folders/t4/rc75kz1j2jb7x35s_vcxj9xm0000gn/T/pip-install-qs3jp_jg/gevent_4e4debb649994738a1cf5c84256ff242/_setuputils.py", line 237, in cythonize1 new_ext = cythonize( ^^^^^^^^^^ File "/private/var/folders/t4/rc75kz1j2jb7x35s_vcxj9xm0000gn/T/pip-build-env-eyvmbsto/overlay/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1109, in cythonize cythonize_one(args) File "/private/var/folders/t4/rc75kz1j2jb7x35s_vcxj9xm0000gn/T/pip-build-env-eyvmbsto/overlay/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1256, in cythonize_one raise CompileError(None, pyx_file) Cython.Compiler.Errors.CompileError: src/gevent/libev/corecext.pyx [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.

sunxiuwo commented 4 days ago

Same issue here, waiting for a fix...

pallyndr commented 11 hours ago

I could eventually install with this command: pip install -r requirements.txt --no-build-isolation

Had to manually install some missing packages, but could go through it.

Hope that helps.