[PyQt] PyQt 5.13.2 build error: module 'sipbuild.api' has no attribute ‘prepare_metadata_for_build_wheel'

FX fxcoudert at gmail.com
Sun Nov 10 16:03:13 GMT 2019

> I'd suggest you start by building PyQt v5.13.2 with SIP v4.19.19.

Thanks. I tried that previously, but it does not appear to work. Building PyQt v5.13.2 with SIP v4.19.19 is fine (I can run configure.py, make and make install), but once it is installed I cannot run simple examples, like:

> ==> /usr/local/Cellar/pyqt/5.13.2/bin/pyuic5 --version
> Traceback (most recent call last):
>   File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
>     "__main__", mod_spec)
>   File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
>     exec(code, run_globals)
>   File "/usr/local/lib/python3.7/site-packages/PyQt5/uic/pyuic.py", line 26, in <module>
>     from PyQt5 import QtCore
> ModuleNotFoundError: No module named 'PyQt5.sip’

So I assumed it would be easier to build the latest version of pyqt with the latest version of sip. Any suggestion is welcome.


More information about the PyQt mailing list