跳至内容
菜单
此问题已终结

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:

  1. Is gevent==21.8.0 the correct version required for Odoo 18?
  2. Does Odoo 18 support Python 3.10 officially?
  3. Is there a known working combination of gevent + greenlet + Python for Odoo 18?
  4. 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!

形象
丢弃
相关帖文 回复 查看 活动
2
8月 24
3405
2
2月 25
2295
1
3月 23
5057
2
9月 20
12791
4
4月 24
26970