Skip to content

install pyqt6-tools error #134

Description

@Lee-hao-hao

I'm using pyqt6 as a ui for but no matter what i do i keep getting the same error

C:\Users\L>pip install pyqt6-tools
Defaulting to user installation because normal site-packages is not writeable
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.2.0-py3-none-any.whl.metadata (2.5 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
╰─> [32 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\L\AppData\Roaming\Python\Python313\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
~~~~^^
File "C:\Users\L\AppData\Roaming\Python\Python313\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\L\AppData\Roaming\Python\Python313\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 178, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\L\AppData\Local\Temp\pip-build-env-cacrey5e\overlay\Lib\site-packages\sipbuild\api.py", line 28, in build_wheel
project = AbstractProject.bootstrap('wheel',
arguments=_convert_config_settings(config_settings))
File "C:\Users\L\AppData\Local\Temp\pip-build-env-cacrey5e\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 74, in bootstrap
project.setup(pyproject, tool, tool_description)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\L\AppData\Local\Temp\pip-build-env-cacrey5e\overlay\Lib\site-packages\sipbuild\project.py", line 629, in setup
self.apply_user_defaults(tool)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Users\L\AppData\Local\Temp\pip-install-2h61sz0h\pyqt6_1e1ef139fdd34e2795a389b54b757bbe\project.py", line 60, in apply_user_defaults
super().apply_user_defaults(tool)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Users\L\AppData\Local\Temp\pip-build-env-cacrey5e\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
super().apply_user_defaults(tool)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Users\L\AppData\Local\Temp\pip-build-env-cacrey5e\overlay\Lib\site-packages\sipbuild\project.py", line 243, in apply_user_defaults
self.builder.apply_user_defaults(tool)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Users\L\AppData\Local\Temp\pip-build-env-cacrey5e\overlay\Lib\site-packages\pyqtbuild\builder.py", line 49, in apply_user_defaults
raise PyProjectOptionException('qmake',
"specify a working qmake or add it to PATH")
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions