-
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
Error while doing 'pip install Pyqt5-tools' #100
Comments
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 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> |
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 × 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 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:
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 #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
<#98>.
—
Reply to this email directly, view it on GitHub
<#100 (comment)>,
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 #98 (comment) |
The same issue also happened when I'm using Python 3.11 and another site:
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 #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)
|
same issue |
Edit: and not using pip. Original: `Collecting pyqt5 × 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. 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 #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:
|
Issue while installing PyQt5Designer pip install pyqt5-tools × 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. |
Same issue while try to install pyqt5 × 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. C:\Windows\System32>pip install pyqt5-tools==5.15.3.3.1 × 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. |
Same issue, kindly help -
× 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. |
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 × 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. 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. |
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.
The text was updated successfully, but these errors were encountered: