Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
3741 Vizualizări

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!

Imagine profil
Abandonează

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

Cel mai bun răspuns

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!

Imagine profil
Abandonează
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)

Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Could you share what python version that you are using?

Imagine profil
Abandonează
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

Related Posts Răspunsuri Vizualizări Activitate
3
iul. 25
520
5
mai 25
4444
2
mai 25
1462
1
aug. 24
2063
1
mai 24
4536