[PyQt] error when installing PyQt5

Phil Thompson phil at riverbankcomputing.com
Fri Jan 10 09:20:48 GMT 2020


On 10/01/2020 09:11, Denis Rouzaud wrote:
> Hi list,
> 
> When running on Travis (ubuntu), I get this error:
> 
> Collecting PyQt5 (from qgis-plugin-ci)
> 194  Downloading
> https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz
> (3.2MB)
> 195  Installing build dependencies: started
> 196  Installing build dependencies: finished with status 'done'
> 197  Getting requirements to build wheel: started
> 198  Getting requirements to build wheel: finished with status 'done'
> 199    Preparing wheel metadata: started
> 200    Preparing wheel metadata: finished with status 'error'
> 201    Complete output from command
> /home/travis/virtualenv/python3.7.1/bin/python
> /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py
> prepare_metadata_for_build_wheel /tmp/tmpi7fqt297:
> 202    Querying qmake about your Qt installation...
> 203    /usr/bin/qmake -query
> 204    Traceback (most recent call last):
> 205      File
> "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py",
> line 64, in prepare_metadata_for_build_wheel
> 206        hook = backend.prepare_metadata_for_build_wheel
> 207    AttributeError: module 'sipbuild.api' has no attribute
> 'prepare_metadata_for_build_wheel'
> 208
> 
> 
> 
> 
> Any idea?

That's the error you get from pip when another error occurs. pip's error 
handling is awful which is why I don't recommend using it.

Phil


More information about the PyQt mailing list