Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
3403 Vistas

Hi Gurus,

I am getting this error when setting up a new server:


Collecting gevent==21.8.0 (from -r /opt/odoosrc/18.0/odoo/requirements.txt (line 20))

  Using cached gevent-21.8.0.tar.gz (6.2 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

  ╰─> [45 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:1325: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)

                                ^

      ------------------------------------------------------------

Any ideas??
thank you so much!

Avatar
Descartar

Are you getting this error.. Am getting this error trying to install odoo18 on ubuntu 25. ?

Mejor respuesta

You can try running the following command in your own virtual environment:

pip install gevent

pip install -r requirements.txt

If you encounter any issues, let me know the error message, and I can help troubleshoot!

Avatar
Descartar
Autor

Thank you. gevent seem to be installed already (see below) however I still get the same error when running pip install -r requirements.txt

pip install gevent
Requirement already satisfied: gevent in /opt/environments/18.0/lib/python3.10/site-packages (24.11.1)
Requirement already satisfied: zope.event in /opt/environments/18.0/lib/python3.10/site-packages (from gevent) (5.0)
Requirement already satisfied: zope.interface in /opt/environments/18.0/lib/python3.10/site-packages (from gevent) (7.2)
Requirement already satisfied: greenlet>=3.1.1 in /opt/environments/18.0/lib/python3.10/site-packages (from gevent) (3.1.1)
Requirement already satisfied: setuptools in /opt/environments/18.0/lib/python3.10/site-packages (from zope.event->gevent) (59.6.0)

Mejor respuesta

You may try this: python3.10 -m pip install gevent

Avatar
Descartar
Mejor respuesta

I assume this happens when you are executing pip install through requirements.txt.

Could you share what python version that you are using?

Avatar
Descartar
Autor

Yes, that is right.
Python 3.10.12

I suggest you to comment the gevent and any other dependencies that triggered error in the requirements.txt first.
Then, install it manually with commands like
pip3.10 install gevent

Publicaciones relacionadas Respuestas Vistas Actividad
5
may 25
4215
2
may 25
1259
1
ago 24
1956
1
may 24
4344
0
ago 23
1960