Install (build) PyQt5 on ppc64le
c.buhtz at posteo.jp
c.buhtz at posteo.jp
Sun Sep 18 20:04:10 BST 2022
Hello,
I need to install/build PyQt5 on a ppc64le machine with Ubuntu 20 LTS
"focal". That machine is a TravisCI instance which runs virtual
environments for every Python version I configured.
But there is a known problem about a missing
'prepare_metadata_for_build_wheel'.
Inside such python versions the usual packages from the Ubuntu
repository are irrelevant. I need to install PyQt5 via pip. So apt-get
is not an option.
I suspect that it is somehow possible to build it. Hope you can
assist me here. This is the relevant part of the error output
"/home/travis/virtualenv/python3.9.14/lib/python3.9/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'
This is the full error output
[0K$ python3 -m pip install pyqt5
Collecting pyqt5
Downloading PyQt5-5.15.7.tar.gz (3.2 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'
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
"/home/travis/virtualenv/python3.9.14/lib/python3.9/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
"/home/travis/virtualenv/python3.9.14/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py",
line 363, in <module> main() File
"/home/travis/virtualenv/python3.9.14/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py",
line 345, in main json_out['return_val'] = hook(**hook_input['kwargs'])
File
"/home/travis/virtualenv/python3.9.14/lib/python3.9/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
"/tmp/pip-build-env-7rsifsqj/overlay/lib/python3.9/site-packages/sipbuild/api.py",
line 46, in build_wheel project = AbstractProject.bootstrap('wheel',
File
"/tmp/pip-build-env-7rsifsqj/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py",
line 87, in bootstrap project.setup(pyproject, tool, tool_description)
File
"/tmp/pip-build-env-7rsifsqj/overlay/lib/python3.9/site-packages/sipbuild/project.py",
line 584, in setup self.apply_user_defaults(tool) File "project.py",
line 69, in apply_user_defaults super().apply_user_defaults(tool) File
"/tmp/pip-build-env-7rsifsqj/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-7rsifsqj/overlay/lib/python3.9/site-packages/sipbuild/project.py",
line 236, in apply_user_defaults self.builder.apply_user_defaults(tool)
File
"/tmp/pip-build-env-7rsifsqj/overlay/lib/python3.9/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.
More information about the PyQt
mailing list