-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to install PyQt6-tools on macOS with m1/arm hardware #103
Comments
Any suggestion for this? I tried several versions but all failed. |
Have you tried updating pip? |
Yes. But it still fails. |
I'm having the same error right now, here is the output. my venv is using python 3.9
|
Me too, almost identical error as @wesgm, python 3.9.16 in venv, mac m1:
|
I encountered this error with python3.10 on windows:
|
Me too, almost identical error as @wesgm, python 3.9.6 in venv, mac m1: × Preparing metadata (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
I'm trying to get an updated release... #110 |
Also, if you don't need the plugins and just want the Qt applications, consider the |
The |
So,what is the solution? I need help ! |
Most services don't provide macOS M1/ARM runners presently so it is harder to provide wheels for that. The best path forward for you depends on what specifically you need this for. As noted, the If you say more about your specific situation then I can perhaps provide a more specific response. |
Also having the same problem just can't install pyqt6-tools on Apple Silicon. I installed pyqt6 just fine and the app runs but i can't install the tools to update the ui. ❯ pip3 install pyqt6-tools
Collecting pyqt6-tools
Using cached pyqt6_tools-6.4.2.3.3-py3-none-any.whl (29 kB)
Collecting click (from pyqt6-tools)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting pyqt6==6.4.2 (from pyqt6-tools)
Using cached PyQt6-6.4.2-cp37-abi3-macosx_10_14_universal2.whl (11.6 MB)
INFO: pip is looking at multiple versions of pyqt6-tools to determine which version is compatible with other requirements. This could take a while.
Collecting pyqt6-tools
Using cached pyqt6_tools-6.3.1.3.3-py3-none-any.whl (29 kB)
Collecting pyqt6==6.3.1 (from pyqt6-tools)
Using cached PyQt6-6.3.1-cp37-abi3-macosx_10_14_universal2.whl (11.7 MB)
Collecting pyqt6-tools
Using cached pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB)
Collecting pyqt6==6.1.0 (from pyqt6-tools)
Using cached PyQt6-6.1.0.tar.gz (946 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Querying qmake about your Qt installation...
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/3.12/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 "/Library/Frameworks/Python.framework/Versions/3.12/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/var/folders/04/wy0mjdy16jq6n9923dlpv7vw0000gn/T/pip-build-env-8_yv3vnr/overlay/lib/python3.12/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/04/wy0mjdy16jq6n9923dlpv7vw0000gn/T/pip-build-env-8_yv3vnr/overlay/lib/python3.12/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/04/wy0mjdy16jq6n9923dlpv7vw0000gn/T/pip-build-env-8_yv3vnr/overlay/lib/python3.12/site-packages/sipbuild/project.py", line 602, in setup
self.update(tool)
File "/private/var/folders/04/wy0mjdy16jq6n9923dlpv7vw0000gn/T/pip-install-8049xod3/pyqt6_83cb9a4fb2414193b3ceb57c7be399cb/project.py", line 157, 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.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details. |
I have same problem, any solutions ??? run : pip install pyqt6-tools on Macbook pro M3Max × Preparing metadata (pyproject.toml) did not run successfully. |
I got the same problem and it seems that pyqt-tools does not support Mac with M series CPU |
I solved it by copying the terminal application activating rossetta mode and installing it via rosetta. |
Execuse me, could you please give me some more information in your way? |
in case you have the time to help out, fyi: #132 |
I try to several times to install PyQt6-tools on my Mac M1 machine. Please let me know if you know the answer.
Here is my information.
Python version: 3.8.9
PyQt6 version: 6.2.3
Here is the error message.
40:353: execution error: ERROR: Command errored out with exit status 1:
command: /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpxjdjnscn
cwd: /private/tmp/pip-install-mlfjakgd/pyqt6
Complete output (31 lines):
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
ERROR: Command errored out with exit status 1: /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpxjdjnscn Check the logs for full command output.
The text was updated successfully, but these errors were encountered: