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

Installation error MacOS #25

Open
pallyndr opened this issue Nov 17, 2024 · 2 comments
Open

Installation error MacOS #25

pallyndr opened this issue Nov 17, 2024 · 2 comments

Comments

@pallyndr
Copy link

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 <module>
      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 "<string>", line 61, in <module>
    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
Copy link

Same issue here, waiting for a fix...

@pallyndr
Copy link
Author

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.

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

2 participants