Skip to Content
Menu
This question has been flagged
3 Replies
1504 Views

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
Discard
Best Answer

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
Discard
Author

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)

Best Answer

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

Avatar
Discard
Best Answer

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

Could you share what python version that you are using?

Avatar
Discard
Author

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 Replies Views Activity
2
May 25
442
5
Oct 24
2835
1
Aug 24
1158
1
May 24
3227
0
Aug 23
1461