コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
670 ビュー

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


アバター
破棄
著作者 最善の回答

Hey Nikhil, I am using a mac so is there a brew alterative for this issue?

I understand the steps you are providing and can tweak around to run the corresponding brew commands but don't want to run sudo commands unless I'm sure it's right. I have corrupted my linux machines a few times in the past this way.


Appreciate the answer though, maybe you can help out a little more

アバター
破棄
関連投稿 返信 ビュー 活動
0
1月 25
459
1
1月 25
594
1
4月 25
636
1
4月 25
205
2
4月 25
252