最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - I can't install Odoo requirement (rl-renderPM) dependencies on windows - Stack Overflow

programmeradmin3浏览0评论

I'm learning Odoo 18 and trying to setup the Odoo source in a project folder. I created a python Venv and try install the requirements.txt file. But it give me this error:

Collecting rl-renderPM==4.0.3 (from -r requirements.txt (line 78))
  Using cached rl_renderPM-4.0.3.tar.gz (36 kB)
  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
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "E:\Project\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "E:\Project\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "E:\Project\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "E:\Temp\pip-build-env-d6ziysxx\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "E:\Temp\pip-build-env-d6ziysxx\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "E:\Temp\pip-build-env-d6ziysxx\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 5, in <module>
      ImportError: cannot import name 'get_abi_tag' from 'wheel.bdist_wheel' (E:\Temp\pip-build-env-d6ziysxx\overlay\Lib\site-packages\wheel\bdist_wheel.py)
      [end of output]

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

What I tried:

  • Upgrade setuptools, wheel;
  • clear pip cache;
  • install C++ build tools;
  • create a new venv;
  • install postgresSQL; ... But none of the above work.

Thus, this error does not exist when I try to install on Mac. I don't know if this is a OS problem or not.

I'm learning Odoo 18 and trying to setup the Odoo source in a project folder. I created a python Venv and try install the requirements.txt file. But it give me this error:

Collecting rl-renderPM==4.0.3 (from -r requirements.txt (line 78))
  Using cached rl_renderPM-4.0.3.tar.gz (36 kB)
  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
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "E:\Project\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "E:\Project\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "E:\Project\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "E:\Temp\pip-build-env-d6ziysxx\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "E:\Temp\pip-build-env-d6ziysxx\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "E:\Temp\pip-build-env-d6ziysxx\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 5, in <module>
      ImportError: cannot import name 'get_abi_tag' from 'wheel.bdist_wheel' (E:\Temp\pip-build-env-d6ziysxx\overlay\Lib\site-packages\wheel\bdist_wheel.py)
      [end of output]

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

What I tried:

  • Upgrade setuptools, wheel;
  • clear pip cache;
  • install C++ build tools;
  • create a new venv;
  • install postgresSQL; ... But none of the above work.

Thus, this error does not exist when I try to install on Mac. I don't know if this is a OS problem or not.

Share Improve this question asked Feb 16 at 13:01 Mai Thanh BìnhMai Thanh Bình 11 bronze badge 0
Add a comment  | 

1 Answer 1

Reset to default 0

Seems like a wheel issue to me. The rl_renderPM package depends on older version of the wheel.

Try creating a virtual environment using venv or conda. Then, install wheel==0.37.1. And try installing Odoo. Should work.

发布评论

评论列表(0)

  1. 暂无评论