[Python] I can't install Odoo requirement (rl-renderPM) dependencies on windows

Discussão em 'Python' iniciado por Stack, Fevereiro 16, 2025.

  1. Stack

    Stack Membro Participativo

    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.

    Continue reading...

Compartilhe esta Página