Skip to content
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

Unable to install pyqt6-tools #124

Open
Akash47007 opened this issue Apr 28, 2024 · 14 comments
Open

Unable to install pyqt6-tools #124

Akash47007 opened this issue Apr 28, 2024 · 14 comments

Comments

@Akash47007
Copy link

Akash47007 commented Apr 28, 2024

Hello, When i used pip to install pyqt6-tools i get this error,

Collecting pyqt6-tools
Using cached pyqt6_tools-6.4.2.3.3-py3-none-any.whl.metadata (8.3 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-win_amd64.whl.metadata (2.2 kB)
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.metadata (8.3 kB)
Collecting pyqt6==6.3.1 (from pyqt6-tools)
Using cached PyQt6-6.3.1-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
Collecting pyqt6-tools
Using cached pyqt6_tools-6.1.0.3.2-py3-none-any.whl.metadata (8.3 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
╰─> [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\Akash\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\Akash\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Akash\AppData\Local\Programs\Python\Python312\Lib\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 "C:\Users\Akash\AppData\Local\Temp\pip-build-env-4ug2saqe\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Akash\AppData\Local\Temp\pip-build-env-4ug2saqe\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 92, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\Akash\AppData\Local\Temp\pip-build-env-4ug2saqe\overlay\Lib\site-packages\sipbuild\project.py", line 587, in setup
self.apply_user_defaults(tool)
File "C:\Users\Akash\AppData\Local\Temp\pip-install-c5a1zs5c\pyqt6_70cad25edec84e2f9db16d54eabb31ed\project.py", line 60, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Akash\AppData\Local\Temp\pip-build-env-4ug2saqe\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Akash\AppData\Local\Temp\pip-build-env-4ug2saqe\overlay\Lib\site-packages\sipbuild\project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\Akash\AppData\Local\Temp\pip-build-env-4ug2saqe\overlay\Lib\site-packages\pyqtbuild\builder.py", line 50, 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.

    • please help me resolve this issue.
@gswwliang
Copy link

Me too, I'm having the same error now, I'm using python 3.10, here is my information:

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
╰─> [23 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 "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/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.10/lib/python3.10/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/0p/9m8lhdwj75172_7t_j59ts_h0000gn/T/pip-build-env-g8ecqxu4/overlay/lib/python3.10/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "/private/var/folders/0p/9m8lhdwj75172_7t_j59ts_h0000gn/T/pip-build-env-g8ecqxu4/overlay/lib/python3.10/site-packages/sipbuild/abstract_project.py", line 92, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/0p/9m8lhdwj75172_7t_j59ts_h0000gn/T/pip-build-env-g8ecqxu4/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 587, in setup
self.apply_user_defaults(tool)
File "/private/var/folders/0p/9m8lhdwj75172_7t_j59ts_h0000gn/T/pip-install-0s__vj3j/pyqt6_f3f7263ec5f64bf082824a33fb6b0908/project.py", line 60, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/0p/9m8lhdwj75172_7t_j59ts_h0000gn/T/pip-build-env-g8ecqxu4/overlay/lib/python3.10/site-packages/pyqtbuild/project.py", line 51, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/0p/9m8lhdwj75172_7t_j59ts_h0000gn/T/pip-build-env-g8ecqxu4/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/0p/9m8lhdwj75172_7t_j59ts_h0000gn/T/pip-build-env-g8ecqxu4/overlay/lib/python3.10/site-packages/pyqtbuild/builder.py", line 50, 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.

@sirEgghead
Copy link

Per #110 , I was able to install it using pip install pyqt-tools. There is a statement regarding less access to custom plugins. Hopefully this won't turn out to be an issue for me. Maybe it works for you.

@Akash47007
Copy link
Author

Per #110 , I was able to install it using pip install pyqt-tools. There is a statement regarding less access to custom plugins. Hopefully this won't turn out to be an issue for me. Maybe it works for you.

I have to install pyqt6-tools, but pip install pyqt-tools will install pyqt5-tools

@storlak
Copy link

storlak commented May 21, 2024

Per #110 , I was able to install it using pip install pyqt-tools. There is a statement regarding less access to custom plugins. Hopefully this won't turn out to be an issue for me. Maybe it works for you.

I am having the same problem actually so what is the difference of pip install pyqt6-tools and pip install pyqt-tools?

@storlak
Copy link

storlak commented May 21, 2024

Hello i am having the same error when i use pip install pyqt6-tools.
Is there any solution offer for this?

@Akash47007
Copy link
Author

Per #110 , I was able to install it using pip install pyqt-tools. There is a statement regarding less access to custom plugins. Hopefully this won't turn out to be an issue for me. Maybe it works for you.

I am having the same problem actually so what is the difference of pip install pyqt6-tools and pip install pyqt-tools?

pyqt-tools installs pyqt5-tools. But pyqt6-tools installs it for pyqt6

@AbdelRahmanRahal
Copy link

AbdelRahmanRahal commented May 23, 2024

23/5/2024. Error still persists. To me, it just infinitely stops at the Preparing metadata (pyproject.toml) ...\ step. Can I perhaps install it some other way?

Edit: Yes, there is! https://build-system.fman.io/qt-designer-download

@marnold1962
Copy link

i had issues as well with pyqt6-tools, but it works with pip install pyqt-tools. syntax ..

@fenchu
Copy link

fenchu commented Aug 8, 2024

A workaround is to use pyside6 -> pyside6-designer

@samratpro
Copy link

@Akash47007
Copy link
Author

nothing works for me. pyside6 also does not install

@samratpro
Copy link

nothing works for me. pyside6 also does not install

It will work only in windows and mac, (https://build-system.fman.io/qt-designer-download) download and install
if you are linux user you can install with
sudo apt-get install pyqt5-dev-tools
sudo apt-get install pyqt6-dev-tools

@santiagoRamirez3
Copy link

I was using windows, and I had the same error. My solution was to create a virtual environment with python 3.9 using conda, and in this venv pyqt6-tools was installed successfully.

@altendky
Copy link
Owner

in case you have the time to help out, fyi: #132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants