Is pyqt5-sip still required for pyqt5 with sip5+ and pyqt-builder?

Phil Thompson phil at riverbankcomputing.com
Tue Sep 28 14:37:45 BST 2021


On 28/09/2021 14:23, Sandro Mani wrote:
> Hi
> 
> I have PyQt5-5.15.4 on Fedora, built with sip-6.1.1 and pyqt-builder
> 1.10.3 by running
> 
> sip-build \
>   --no-make \
>   --qt-shared \
>   --confirm-license \
>   --qmake=%{_qt5_qmake} \
>   --api-dir=%{_qt5_datadir}/qsci/api/python \
>   --verbose \
>   --dbus=%{_includedir}/dbus-1.0/ \
>   --pep484-pyi \
>   --qmake-setting 'QMAKE_CFLAGS_RELEASE="%{optflags}"' \
>   --qmake-setting 'QMAKE_CXXFLAGS_RELEASE="%{optflags} `pkg-config
> --cflags dbus-python`"' \
>   --qmake-setting 'QMAKE_LFLAGS_RELEASE="%{?__global_ldflags}"'
> 
> 
> If I then run
> 
> from PyQt5.QtCore import *
> 
> I get ModuleNotFoundError: No module named 'PyQt5.sip'
> 
> If I also build pyqt5-sip, which installs
> sip.cpython-310-x86_64-linux-gnu.so to .../site-packages/PyQt5/,
> everything works.
> 
> Is this an issue with building PyQt5, or is pyqt5-sip still required
> also when building with sip5+?

The build of the sip module for PyQt5 is separate to the build of PyQt5.

Phil


More information about the PyQt mailing list