[PyQt] Building PyQt5.12 with Sip4.19.14 (Python2.7) on Cent7

zac_123 costerzachary at gmail.com
Thu Mar 26 00:50:00 GMT 2020

Hi All,

I'm trying to build PyQt5.12 with Sip4.19.14, however i am getting the below
import error from Python when i start up a Python Shell with PyQt5.12

>>> from PyQt5 import sip
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name sip

Below is the strace from the import error. It seems to be searching for sip
modules inside the PyQt Install directory that do not exist. It is not
looking for my sip install directory.

0x7fff43e1c4d0) = -1 ENOENT (No such file or directory)
O_RDONLY) = -1 ENOENT (No such file or directory)
O_RDONLY) = -1 ENOENT (No such file or directory)
O_RDONLY) = -1 ENOENT (No such file or directory)
O_RDONLY) = -1 ENOENT (No such file or directory)

These are the args i am building sip with
cmdArgs="configure.py -b ${EXEC_PREFIX}/bin -d ${EXEC_PREFIX}/lib/ -e
${EXEC_PREFIX}/include/ --sip-module=PyQt5.sip"

Has anyone encountered this before?

Many Thanks for your help,

Sent from: http://python.6.x6.nabble.com/PyQt-f1792048.html

More information about the PyQt mailing list