Hello everyone,
I’m trying to set up Odoo 18 Community Edition on my local machine running Ubuntu 22.04 with Python 3.10.12.
While installing the requirements.txt dependencies in a virtual environment, I keep getting a build error related to gevent==21.8.0. It tries to compile from source and fails with the following Cython error:
Error compiling Cython file: src/gevent/libev/corecext.pyx:60:26: undeclared name not builtin: long
I’ve tried:
- Installing build tools: build-essential, python3.10-dev, libffi-dev, etc.
- Downgrading and manually installing greenlet==1.1.2
- Manually installing gevent==21.8.0 using wheel (no working Linux wheels found)
- Forcing pip to use binary only: --only-binary :all:
But every attempt ends up trying to compile gevent from source and fails.
🔹 My setup:
- Ubuntu 22.04
- Python 3.10.12 (inside virtualenv)
- Odoo 18 cloned from GitHub
- pip, setuptools, wheel, cython — all updated
❓My questions:
- Is gevent==21.8.0 the correct version required for Odoo 18?
- Does Odoo 18 support Python 3.10 officially?
- Is there a known working combination of gevent + greenlet + Python for Odoo 18?
- Can I use a newer gevent version (e.g., 21.12.0) safely without breaking Odoo?
I am beginner just started learning and I’ve been stuck on this for a week now and would really appreciate some guidance from the community or maintainers. 🙏
Thank you!
See https://github.com/odoo/odoo/issues/187021