So I am trying to run odoo version 18 locally (just can't seem to get it right).
I am using a mac system. I clone the 18.0 branch, create a virtual enviroment.
python3 -m venv odoo_venv
Install setuptools wheel
pip3 install setuptools wheel
Try to install the requirements with
pip3 install -r requirements.txt
I end up with this error, no matter what I try.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
Traceback (most recent call last):
File "/Users/farazshah/Projects/Odoo/env18/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/Users/farazshah/Projects/Odoo/env18/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/farazshah/Projects/Odoo/env18/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/x3/mgbzf69x725bpsr07ydpsvzw0000gn/T/pip-build-env-ogtubky5/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/x3/mgbzf69x725bpsr07ydpsvzw0000gn/T/pip-build-env-ogtubky5/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/private/var/folders/x3/mgbzf69x725bpsr07ydpsvzw0000gn/T/pip-build-env-ogtubky5/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 31, in <module>
File "<string>", line 28, in get_version
KeyError: '__version__'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
[notice] A new release of pip is available: 25.0 -> 25.0.1
[notice] To update, run: pip install --upgrade 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.
Just to make it easier for everyone who tries to help. I have installed the following:
- Python3 (3.13)
- Pip3 (3.13)
- postgres (14.17)
- PGAdmin
- Node