Install (build) PyQt5 on ppc64le

Dmitry Shachnev mitya57 at
Mon Oct 3 13:08:10 BST 2022


I have just replied on ubuntu-motu mailing list, but posting here too.

On Sun, Sep 18, 2022 at 07:04:10PM +0000, c.buhtz at wrote:
> 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/",
> 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 not the relevant part...

> This is the full error output
> [...] 
> File
> "/tmp/pip-build-env-7rsifsqj/overlay/lib/python3.9/site-packages/pyqtbuild/",
> line 67, in apply_user_defaults raise PyProjectOptionException('qmake',

...but this one is.

Here is line 67 of pyqtbuild/

And it means that PyQt-builder was not able to find qmake in PATH. You should
make sure you have a working qmake executable somewhere in $PATH.

On Ubuntu 20.04, make sure you have qt5-qmake package installed, and also
either export QT_SELECT=5 or install qt5-default package.

Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <>

More information about the PyQt mailing list