Closed BIVANBLAZE13 closed 1 year ago
I didn't track through all the pieces but pip is doing some backtracking to older versions to try to satisfy some constraint and then also trying to build pyqt5==5.14.0
and falling apart on that. You probably don't want to be building PyQt. :]
What command did you run? What are you looking for in terms of versions? Do you need to use PyQt5 instead of PyQt6?
I have the same erros.
C:\Users\Liu.D.H>pip install PyQt5
Collecting PyQt5
Using cached PyQt5-5.15.6-cp36-abi3-win_amd64.whl (6.7 MB)
Collecting PyQt5-Qt5>=5.15.2
Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl (50.1 MB)
Collecting PyQt5-sip<13,>=12.8
Using cached PyQt5_sip-12.9.1-cp310-cp310-win_amd64.whl (77 kB)
Installing collected packages: PyQt5-Qt5, PyQt5-sip, PyQt5
Successfully installed PyQt5-5.15.6 PyQt5-Qt5-5.15.2 PyQt5-sip-12.9.1
C:\Users\Liu.D.H>pip install PyQt5-tools
Collecting PyQt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Using cached pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB)
Collecting click
Using cached click-8.0.4-py3-none-any.whl (97 kB)
Collecting PyQt5-tools
Using cached pyqt5_tools-5.15.4.3.0.3-py3-none-any.whl (28 kB)
Using cached pyqt5_tools-5.15.3.3.2-py3-none-any.whl (29 kB)
Collecting python-dotenv
Using cached python_dotenv-0.19.2-py2.py3-none-any.whl (17 kB)
Collecting PyQt5-tools
Using cached pyqt5_tools-5.15.3.3.1-py3-none-any.whl (28 kB)
Using cached pyqt5_tools-5.15.3.3.0.3-py3-none-any.whl (28 kB)
Using cached pyqt5_tools-5.15.2.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.2
Using cached PyQt5-5.15.2.tar.gz (3.3 MB)
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
╰─> [29 lines of output]
Traceback (most recent call last):
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 156, 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'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
self.apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-lmck1ydb\pyqt5_d337c407e37e43469adb9b9b0124b1fd\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\pyqtbuild\builder.py", line 67, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[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.
C:\Users\Liu.D.H>python -V
Python 3.10.2
C:\Users\Liu.D.H>pip --version
pip 22.0.3 from C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)
C:\Users\Liu.D.H>pip install --upgrade pip
Requirement already satisfied: pip in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (22.0.3)
C:\Users\Liu.D.H>
I have the same erros.
C:\Users\Liu.D.H>pip install PyQt5 Collecting PyQt5 Using cached PyQt5-5.15.6-cp36-abi3-win_amd64.whl (6.7 MB) Collecting PyQt5-Qt5>=5.15.2 Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl (50.1 MB) Collecting PyQt5-sip<13,>=12.8 Using cached PyQt5_sip-12.9.1-cp310-cp310-win_amd64.whl (77 kB) Installing collected packages: PyQt5-Qt5, PyQt5-sip, PyQt5 Successfully installed PyQt5-5.15.6 PyQt5-Qt5-5.15.2 PyQt5-sip-12.9.1 C:\Users\Liu.D.H>pip install PyQt5-tools Collecting PyQt5-tools Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB) Using cached pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB) Collecting click Using cached click-8.0.4-py3-none-any.whl (97 kB) Collecting PyQt5-tools Using cached pyqt5_tools-5.15.4.3.0.3-py3-none-any.whl (28 kB) Using cached pyqt5_tools-5.15.3.3.2-py3-none-any.whl (29 kB) Collecting python-dotenv Using cached python_dotenv-0.19.2-py2.py3-none-any.whl (17 kB) Collecting PyQt5-tools Using cached pyqt5_tools-5.15.3.3.1-py3-none-any.whl (28 kB) Using cached pyqt5_tools-5.15.3.3.0.3-py3-none-any.whl (28 kB) Using cached pyqt5_tools-5.15.2.3.2-py3-none-any.whl (29 kB) Collecting pyqt5==5.15.2 Using cached PyQt5-5.15.2.tar.gz (3.3 MB) 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 ╰─> [29 lines of output] Traceback (most recent call last): File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 156, 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' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module> main() File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel project = AbstractProject.bootstrap('pep517') File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap project.setup(pyproject, tool, tool_description) File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup self.apply_user_defaults(tool) File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-lmck1ydb\pyqt5_d337c407e37e43469adb9b9b0124b1fd\project.py", line 63, in apply_user_defaults super().apply_user_defaults(tool) File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults super().apply_user_defaults(tool) File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults self.builder.apply_user_defaults(tool) File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-6lzd4wik\overlay\Lib\site-packages\pyqtbuild\builder.py", line 67, in apply_user_defaults raise PyProjectOptionException('qmake', sipbuild.pyproject.PyProjectOptionException [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. C:\Users\Liu.D.H>python -V Python 3.10.2 C:\Users\Liu.D.H>pip --version pip 22.0.3 from C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10) C:\Users\Liu.D.H>pip install --upgrade pip Requirement already satisfied: pip in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (22.0.3) C:\Users\Liu.D.H> Yup! I got same issue while installing pyqt5-tools in command , can any one help us to solve the problem
Yeah I have the same errors while installing pyqt5-tools using 'pip install PyQt5-tools'
C:\WINDOWS\system32>pip install PyQt5-tools Collecting PyQt5-tools Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB) Collecting pyqt5==5.15.4 Downloading PyQt5-5.15.4.tar.gz (3.3 MB) ---------------------------------------- 3.3/3.3 MB 40.1 kB/s eta 0:00:00 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 ╰─> [29 lines of output] Traceback (most recent call last): File "C:\Users\Kirchoff\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pep517\in_process_in_process.py", line 156, 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'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Kirchoff\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Users\Kirchoff\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\Kirchoff\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
self.apply_user_defaults(tool)
File "C:\Users\Kirchoff\AppData\Local\Temp\pip-install-gn00vu06\pyqt5_a407ac430c8e422da60abee46016e5c8\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\Kirchoff\AppData\Local\Temp\pip-build-env-jkgit8i3\overlay\Lib\site-packages\pyqtbuild\builder.py", line 67, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[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 the same problem. My guess is that we are on python 3.10 and apparently the wheel binary build is only up to 3.9, so it falls back to the source and probably we are missing several development modules to get to the end.
I have tried to download and install from local the wheel file. I got the following error message:
(simpleenv) c:\Users\Antonio\Documents\pyenv\simpleenv>pip install "c:\Users\Antonio\Downloads\pyqt5_tools-5.15.4.3.2-py3-none-any.whl"
Processing c:\users\antonio\downloads\pyqt5_tools-5.15.4.3.2-py3-none-any.whl
Collecting python-dotenv
Using cached python_dotenv-0.20.0-py3-none-any.whl (17 kB)
ERROR: Could not find a version that satisfies the requirement pyqt5-plugins<5.15.4.3,>=5.15.4.2.2 (from pyqt5-tools) (from versions: none)
ERROR: No matching distribution found for pyqt5-plugins<5.15.4.3,>=5.15.4.2.2
Due to this error pip it is trying to build from source and then failing.
@Bachewalchandu @Kirchoff-max @altendky Maybe you could try my temporary workarounds commentted on https://github.com/altendky/pyqt-tools/issues/98.
Thanks! I will give it a try and since I am working on a segregated network with our private pypi index, renaming the packages will be extremely easy.
I'll let you know
Il ven 1 lug 2022, 11:44 liudonghua @.***> ha scritto:
@Bachewalchandu https://github.com/Bachewalchandu @Kirchoff-max https://github.com/Kirchoff-max @altendky https://github.com/altendky Maybe you could try my temporary workarounds commentted on #98 https://github.com/altendky/pyqt-tools/issues/98.
— Reply to this email directly, view it on GitHub https://github.com/altendky/pyqt-tools/issues/100#issuecomment-1172155930, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC6OF7KFZEGHV43CUI7IY6DVR24ZNANCNFSM5LFGOIXA . You are receiving this because you commented.Message ID: @.***>
having the same issue with django project.
I'm having the same issue as well, I read I'd have to install an earlier version of python, which in this day and age shouldn't be the case tbh.
@wuddz-devs instead of installing an older version of python (that is very annoying) you can follow the procedure suggested by @andrewushakov here https://github.com/altendky/pyqt-tools/issues/98#issuecomment-968296553
The same issue also happened when I'm using Python 3.11 and another site:
Collecting pyqt5-tools
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b7/70/a25aab849a5e38ae78716acde1f917a14d9d819c8600bbb8cf536781f7c5/pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting click
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c2/f1/df59e28c642d583f7dacffb1e0965d0e00b218e0186d7858ac5233dce840/click-8.1.3-py3-none-any.whl (96 kB)
Collecting pyqt5==5.15.4
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz (3.3 MB)
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
╰─> [33 lines of output]
Traceback (most recent call last):
File "C:\Users\lingz\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 144, 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'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\lingz\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
main()
File "C:\Users\lingz\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lingz\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 148, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\sipbuild\project.py", line 585, in setup
self.apply_user_defaults(tool)
File "C:\Users\lingz\AppData\Local\Temp\pip-install-xzz8tsgk\pyqt5_72e0c4cd1f6b4d94b9f8bf994dd3902c\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\sipbuild\project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\lingz\AppData\Local\Temp\pip-build-env-pzsf4gr3\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[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.
So it happens that PyQt5's wheel only supports Python 3.6~3.9 (pip tries to download the .tar.gz file), and when you check pypi, you see that PyQt6 has the same problem.(only supports Python 3.7)
@William20101209 You can also try my temp workaround, see https://github.com/altendky/pyqt-tools/issues/108. Both of python 3.10, 3.11 support.
I have problems with downloading the pyqt5-tools (Here u tried to download pyqt6-tools, but it gives me the same error) Can someone help me?
C:\Users\mikro>pip install pyqt6-tools
Collecting pyqt6-tools
Downloading pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB)
Collecting python-dotenv
Using cached python_dotenv-0.21.1-py3-none-any.whl (19 kB)
Collecting click
Downloading click-8.1.3-py3-none-any.whl (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 KB 1.4 MB/s eta 0:00:00
Collecting pyqt6==6.1.0
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
╰─> [29 lines of output]
Traceback (most recent call last):
File "C:\Users\mikro\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 156, 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'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\mikro\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Users\mikro\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\mikro\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\sipbuild\project.py", line 585, in setup
self.apply_user_defaults(tool)
File "C:\Users\mikro\AppData\Local\Temp\pip-install-f0701yh8\pyqt6_19d19e38a44444ec8a5619341b7a07fb\project.py", line 60, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\sipbuild\project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\mikro\AppData\Local\Temp\pip-build-env-mi29m304\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[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.
same issue
Edit: I can't recall everything I may have done, but it seems you can get around it on a raspberry pi by using sudo apt install
and not using pip.
Original: Same Issue here giys! I'm using python 3.8.10, if I am inputting my commands properly.
`Collecting pyqt5 Downloading PyQt5-5.15.9.tar.gz (3.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 462.5 kB/s eta 0:00:00 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
╰─> [22 lines of output]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
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. science@raspberrypi:~ $ `
We shell see if I can come up with a solution.
Hey all, this is a common note I'm adding to several issues.
I apologize for the hassle you have all dealt with around this project. I don't work with Qt anymore and every time I've come back to this I have run into various problems trying to get it going again. This time I made it through the five days of work to get the release out (fingers crossed that it actually works). It would be great to get some community involvement around updating and debugging whatever issues come up. Maybe the next Python, Qt, or PyQt release will provide an opportunity for someone to offer that. Maybe I'll find time to continue cleaning this up so it's a bit more maintainable. If interested, there's been some discussion about the project at https://github.com/altendky/pyqt-tools/issues/110.
In an effort to make it easier to monitor issues around the latest release I am closing this issue. Discussion can continue if still applicable, but I want to make it easier to move forward. If there are issues with the new releases, please open new issues.
Things to be aware of that may ease some cases:
qt-tools
which provides helpers around qt-applications
. This skips the PyQt specific layers. You won't have access to the plugins, such as for showing custom PyQt Designer widget plugins in Designer, but you also won't have the hassle of needing a version matching your PyQt version. At least not quite as closely.PYQT_VERSION=6.5.0 QT_VERSION=6.5.2 venv/bin/pip install git+https://github.com/altendky/qt-applications@v2.3
for example would try to build and install qt-applications v2.3 including (a theoretical future) PyQt version 6.5.0 and Qt 6.5.2. I'm sure there are corners around this, but it would be relevant.Issue while installing PyQt5Designer
pip install pyqt5-tools
Defaulting to user installation because normal site-packages is not writeable
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.9.3.3-py3-none-any.whl.metadata (8.3 kB)
Collecting click (from pyqt5-tools)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting pyqt5==5.15.9 (from pyqt5-tools)
Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
INFO: pip is looking at multiple versions of pyqt5-tools to determine which version is compatible with other requirements. This could take a while.
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.4 (from pyqt5-tools)
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
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
╰─> [26 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
Traceback (most recent call last):
File "C:\Users\gopal\AppData\Roaming\Python\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
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.
Same issue while try to install pyqt5 C:\Windows\System32>pip install pyqt5==5.15.3 Defaulting to user installation because normal site-packages is not writeable Collecting pyqt5==5.15.3 Downloading PyQt5-5.15.3.tar.gz (3.3 MB) ---------------------------------------- 3.3/3.3 MB 3.3 MB/s eta 0:00:00 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
╰─> [26 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
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64qbz5n2kfra8p0\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
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.
C:\Windows\System32>pip install pyqt5-tools==5.15.3.3.1 Defaulting to user installation because normal site-packages is not writeable Collecting pyqt5-tools==5.15.3.3.1 Downloading pyqt5_tools-5.15.3.3.1-py3-none-any.whl.metadata (8.3 kB) Requirement already satisfied: click in c:\users\asus\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages (from pyqt5-tools==5.15.3.3.1) (8.1.7) Collecting pyqt5==5.15.3 (from pyqt5-tools==5.15.3.3.1) Using cached PyQt5-5.15.3.tar.gz (3.3 MB) 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
╰─> [26 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
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64qbz5n2kfra8p0\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
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.
Same issue, kindly help -
pip install PyQt5-tools Collecting PyQt5-tools Using cached pyqt5_tools-5.15.9.3.3-py3-none-any.whl.metadata (8.3 kB) Collecting click (from PyQt5-tools) Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB) Collecting pyqt5==5.15.9 (from PyQt5-tools) Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl.metadata (2.2 kB) INFO: pip is looking at multiple versions of pyqt5-tools to determine which version is compatible with other requirements. This could take a while. Collecting PyQt5-tools Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl.metadata (8.3 kB) Collecting pyqt5==5.15.4 (from PyQt5-tools) Using cached PyQt5-5.15.4.tar.gz (3.3 MB) 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
╰─> [26 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
Traceback (most recent call last):
File "C:\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
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.
Well, it seems that PyQT5-tools and PyQT6-tools has the same problem. It seems to be a fatal development error, existing across versions. But the error gived by pip does not seem to be just a permission error, since I'm running the installation on an admin command prompt.
`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
╰─> [62 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 "D:\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Python\Python312\Lib\tempfile.py", line 905, in onexc
_os.unlink(path)
PermissionError: [WinError 5] Visiting denied.: 'C:\\Users\\lingz\\AppData\\Local\\Temp\\tmptzg7typt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Python\Python312\Lib\weakref.py", line 666, in _exitfunc
f()
File "D:\Python\Python312\Lib\weakref.py", line 590, in __call__
return info.func(*info.args, **(info.kwargs or {}))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Python312\Lib\tempfile.py", line 935, in _cleanup
cls._rmtree(name, ignore_errors=ignore_errors)
File "D:\Python\Python312\Lib\tempfile.py", line 930, in _rmtree
_shutil.rmtree(name, onexc=onexc)
File "D:\Python\Python312\Lib\shutil.py", line 820, in rmtree
return _rmtree_unsafe(path, onexc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Python312\Lib\shutil.py", line 652, in _rmtree_unsafe
onexc(os.rmdir, path, err)
File "D:\Python\Python312\Lib\tempfile.py", line 920, in onexc
cls._rmtree(path, ignore_errors=ignore_errors,
File "D:\Python\Python312\Lib\tempfile.py", line 930, in _rmtree
_shutil.rmtree(name, onexc=onexc)
File "D:\Python\Python312\Lib\shutil.py", line 820, in rmtree
return _rmtree_unsafe(path, onexc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Python312\Lib\shutil.py", line 652, in _rmtree_unsafe
onexc(os.rmdir, path, err)
File "D:\Python\Python312\Lib\shutil.py", line 650, in _rmtree_unsafe
os.rmdir(path)
PermissionError: [WinError 32] Another program is using the code, the process can't reach it.: 'C:\\Users\\Admin\\AppData\\Local\\Temp\\tmptzg7typt'
[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.`
From what I had known, PyQT5-tools and PyQT6-tools both have this problem. But it seemed to be like that because python is trying to build its own wheel for the lib. So @Kiran-pro2001 try using the #108 for current substitute support for both PyQT5-tools and PyQT6-tools.
And I suppose this issue is already closed, guys. Try messing around the other uploads such as the #108 I mentioned or the #110 in working so your problem can be solved.
I found that, dont use the newest version of python will solve the issues!!
Hello, I am using Pycharm, Python 3.10.0, windows 10, and trying to install pyqt5 designer via the pyqt5-tools. If someone can help me fix it, that would be helpful.