pip install pyqt5 gives errors
-
Hello,
I am trying to install pyqt5 to my rapsbery pi 4 and I keep encountering errors. I would appreciate some help.This is what it is saying:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyqt5-tools
Downloading pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Downloading pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB)
Collecting python-dotenv
Downloading https://www.piwheels.org/simple/python-dotenv/python_dotenv-0.20.0-py3-none-any.whl (17 kB)
Collecting pyqt5==5.15.4
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /tmp/tmpfcl5u1dh_in_process.py prepare_metadata_for_build_wheel /tmp/tmp_1hq1rbr
cwd: /tmp/pip-install-xk_nj42_/pyqt5_486fac8581a5450798f8daec5209b9f1
Complete output (37 lines):
Querying qmake about your Qt installation...
/usr/bin/qmake -query
Traceback (most recent call last):
File "/tmp/tmpfcl5u1dh_in_process.py", line 126, 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 "/tmp/tmpfcl5u1dh_in_process.py", line 280, in <module> main() File "/tmp/tmpfcl5u1dh_in_process.py", line 263, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/tmp/tmpfcl5u1dh_in_process.py", line 130, in prepare_metadata_for_build_wheel return _get_wheel_metadata_from_wheel(backend, metadata_directory, File "/tmp/tmpfcl5u1dh_in_process.py", line 159, in _get_wheel_metadata_from_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 51, in build_wheel project = AbstractProject.bootstrap('pep517') File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap project.setup(pyproject, tool, tool_description) File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 594, in setup self.apply_user_defaults(tool) File "project.py", line 63, in apply_user_defaults super().apply_user_defaults(tool) File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults super().apply_user_defaults(tool) File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 241, in apply_user_defaults self.builder.apply_user_defaults(tool) File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 76, in apply_user_defaults self._get_qt_configuration() File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 495, in _get_qt_configuration for line in project.read_command_pipe([self.qmake, '-query']): File "/tmp/pip-build-env-iodb_fvz/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 557, in read_command_pipe raise UserException( sipbuild.exceptions.UserException ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz#sha256=2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.6). Command errored out with exit status 1: /usr/bin/python3 /tmp/tmpfcl5u1dh_in_process.py prepare_metadata_for_build_wheel /tmp/tmp_1hq1rbr Check the logs for full command output.
-
Hi and welcome to devnet,
That's a question you should bring to the author of the PyQt5 bindings.