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

Sandro Mani manisandro at gmail.com
Tue Sep 28 14:23:11 BST 2021


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+?

Thanks

Sandro

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210928/6cd6df13/attachment.htm>


More information about the PyQt mailing list