[GH-ISSUE #150] [BUG] Subprocess exited with error + Metadata generation failed #115

Open
opened 2026-03-04 12:29:19 +03:00 by kerem · 3 comments
Owner

Originally created by @judedanielsmith on GitHub (Aug 29, 2024).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/150

Hey all. trying to install onthespot on mac. Whether I'm trying to install requirements or run the build file, I get this error message.

--

Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
Querying qmake about your Qt installation...
Traceback (most recent call last):
File "/Users/username/onthespot/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Users/username/onthespot/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/username/onthespot/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/tmp/pip-build-env-ecw9b5tl/overlay/lib/python3.12/site-packages/sipbuild/api.py", line 28, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/tmp/pip-build-env-ecw9b5tl/overlay/lib/python3.12/site-packages/sipbuild/abstract_project.py", line 74, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/tmp/pip-build-env-ecw9b5tl/overlay/lib/python3.12/site-packages/sipbuild/project.py", line 624, in setup
self.update(tool)
File "/private/tmp/pip-install-kbr379aw/pyqt5_ef134987c4814a78b7603fac398bc418/project.py", line 165, in update
raise UserException(
sipbuild.exceptions.UserException
[end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

--

Any ideas?

Originally created by @judedanielsmith on GitHub (Aug 29, 2024). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/150 Hey all. trying to install onthespot on mac. Whether I'm trying to install requirements or run the build file, I get this error message. -- Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [21 lines of output] pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead Querying qmake about your Qt installation... Traceback (most recent call last): File "/Users/username/onthespot/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/Users/username/onthespot/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/username/onthespot/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/tmp/pip-build-env-ecw9b5tl/overlay/lib/python3.12/site-packages/sipbuild/api.py", line 28, in build_wheel project = AbstractProject.bootstrap('wheel', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/tmp/pip-build-env-ecw9b5tl/overlay/lib/python3.12/site-packages/sipbuild/abstract_project.py", line 74, in bootstrap project.setup(pyproject, tool, tool_description) File "/private/tmp/pip-build-env-ecw9b5tl/overlay/lib/python3.12/site-packages/sipbuild/project.py", line 624, in setup self.update(tool) File "/private/tmp/pip-install-kbr379aw/pyqt5_ef134987c4814a78b7603fac398bc418/project.py", line 165, in update raise UserException( sipbuild.exceptions.UserException [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. -- Any ideas?
Author
Owner

@justin025 commented on GitHub (Aug 31, 2024):

I have macos builds here, when i built 0.6 I pretty much ran below and it ran fine.
brew install python ffmpeg
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
build_mac.sh

you explain the steps you took, also use requirements from my repo instead, the one here is outdated

<!-- gh-comment-id:2322764997 --> @justin025 commented on GitHub (Aug 31, 2024): I have macos builds [here](https://github.com/justin025/onthespot/releases/tag/v0.6), when i built 0.6 I pretty much ran below and it ran fine. `brew install python ffmpeg` `python -m venv venv` `source venv/bin/activate` `pip install -r requirements.txt` `build_mac.sh` you explain the steps you took, also use requirements from my repo instead, the one here is outdated
Author
Owner

@judedanielsmith commented on GitHub (Sep 4, 2024):

hey - thanks for the updated repo, it gets to preparing metadata when installing the requirements text, mac gets extremely hot and nothing happens. process doesn't terminate but just stays extremely hot, do I need to wait a while or is there something not working?

<!-- gh-comment-id:2330157699 --> @judedanielsmith commented on GitHub (Sep 4, 2024): hey - thanks for the updated repo, it gets to preparing metadata when installing the requirements text, mac gets extremely hot and nothing happens. process doesn't terminate but just stays extremely hot, do I need to wait a while or is there something not working?
Author
Owner

@justin025 commented on GitHub (Sep 4, 2024):

Sorry for forgetting but brew install ffmpeg might fix this. Make sure to build from 0.6.1

<!-- gh-comment-id:2330250423 --> @justin025 commented on GitHub (Sep 4, 2024): Sorry for forgetting but `brew install ffmpeg` might fix this. Make sure to build from 0.6.1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/onthespot#115
No description provided.