Hi all,
I’m trying to install the following:
pipx install "openconnect-sso"
and I get the output
Fatal error from pip prevented installation. Full pip output in file:
/home/gianmaria/.local/pipx/logs/cmd_2024-01-12_17.27.41_pip_errors.log
pip seemed to fail to build package:
PyQt6<7.0.0,>=6.3.0
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
error: metadata-generation-failed
Error installing openconnect-sso.
Log’s file content is:
PIP STDOUT
----------
Collecting openconnect-sso
Using cached openconnect_sso-0.8.1-py3-none-any.whl.metadata (7.4 kB)
Collecting PyQt6<7.0.0,>=6.3.0 (from openconnect-sso)
Using cached PyQt6-6.6.1.tar.gz (1.0 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
PIP STDERR
----------
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [31 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 "/home/gianmaria/.local/pipx/shared/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/gianmaria/.local/pipx/shared/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gianmaria/.local/pipx/shared/lib/python3.11/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 "/tmp/pip-build-env-vxr7b14j/overlay/lib/python3.11/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-vxr7b14j/overlay/lib/python3.11/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/tmp/pip-build-env-vxr7b14j/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 587, in setup
self.apply_user_defaults(tool)
File "/tmp/pip-install-5cszrz8n/pyqt6_429ebaedf5c5414990a6b57061df6afe/project.py", line 66, in apply_user_defaults
super().apply_user_defaults(tool)
File "/tmp/pip-build-env-vxr7b14j/overlay/lib/python3.11/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/tmp/pip-build-env-vxr7b14j/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/tmp/pip-build-env-vxr7b14j/overlay/lib/python3.11/site-packages/pyqtbuild/builder.py", line 78, in apply_user_defaults
self._get_qt_configuration()
File "/tmp/pip-build-env-vxr7b14j/overlay/lib/python3.11/site-packages/pyqtbuild/builder.py", line 497, in _get_qt_configuration
for line in project.read_command_pipe([self.qmake, '-query']):
File "/tmp/pip-build-env-vxr7b14j/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 554, in read_command_pipe
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.
What should I fix in my python installation to fix the error?
Thank you very much.