Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
3665 Visualizzazioni

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
Abbandona

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

Risposta migliore

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
Abbandona
Autore

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)

Risposta migliore

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

Avatar
Abbandona
Risposta migliore

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

Could you share what python version that you are using?

Avatar
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
3
lug 25
456
5
mag 25
4392
2
mag 25
1424
1
ago 24
2041
1
mag 24
4510