简体   繁体   中英

Installing Odoo on Mac raises gevent error

I'm following this tutorial to install Odoo 15 on Mac, but I'm getting this error when running pip install -r requirements.txt :

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      cdef load_traceback
      cdef Waiter
      cdef wait
      cdef iwait
      cdef reraise
      cpdef GEVENT_CONFIG
            ^
      ------------------------------------------------------------
      
      src/gevent/_gevent_cgreenlet.pxd:181:6: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.

I have found several documents addressing cython errors, but none addressing the specific exception I'm getting.

Odoo 15 currently seems to be incompatible with Python 3.10.

You can get rid of that error by upgrading gevent/greenlet to newer versions in the requirements file. I've successfully tried gevent 21.12.0 and greenlet 1.1.3, BUT then you'll run into more trouble due to changes in the Python collections package.Here is a link to the issue regarding the gevent error for reference.

Downgrade to Python 3.9.0 for the moment to continue with the installation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM