跳至内容
菜单
此问题已终结
1 回复
2275 查看

Hi all,

Im trying to install Odoo 17 on a VPS.

Unfortunately i'm running in to a installation issue while installing the Python requirements from requirements.txt:

Collecting reportlab==3.6.12 (from -r odoo17/requirements.txt (line 48))
  Using cached reportlab-3.6.12.tar.gz (4.5 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
  ╰─> [10 lines of output]
      ##### setup-python-3.12.3-linux-x86_64: ================================================
      ##### setup-python-3.12.3-linux-x86_64: Attempting build of _rl_accel
      ##### setup-python-3.12.3-linux-x86_64: extensions from 'src/rl_addons/rl_accel'
      ##### setup-python-3.12.3-linux-x86_64: ================================================
      ##### setup-python-3.12.3-linux-x86_64: ===================================================
      ##### setup-python-3.12.3-linux-x86_64: Attempting build of _renderPM
      ##### setup-python-3.12.3-linux-x86_64: extensions from 'src/rl_addons/renderPM'
      ##### setup-python-3.12.3-linux-x86_64: ===================================================
      ##### setup-python-3.12.3-linux-x86_64: will use package libart 2.3.21
      !!!!! cannot find ft2build.h
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.


I installed freetype but that doesn't solve the issue. 

Any ideas how to solve this?

形象
丢弃
编写者 最佳答案

Never mind I got it working. Problem was the requirements.txt referencing multiple packages that are not compatible with Ubuntu 22.04. Installing them by hand worked out for me.


形象
丢弃

you mean installing every package separately will solve this issue?

编写者

Yes installing each package separately. That way if there is an error, like a version difference you are able to fix it. I installed all latest versions, not the versions mentioned in the requirements.txt file.