[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.

stat("/asset/common/software/thirdparty/pyQt/5.12.2-build2/arch/linux-centos7/x86_64/qt5.12/python2.7/ucs4/ndebug/PyQt5/sip",
0x7fff43e1c4d0) = -1 ENOENT (No such file or directory)
open("/asset/common/software/thirdparty/pyQt/5.12.2-build2/arch/linux-centos7/x86_64/qt5.12/python2.7/ucs4/ndebug/PyQt5/sip.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/asset/common/software/thirdparty/pyQt/5.12.2-build2/arch/linux-centos7/x86_64/qt5.12/python2.7/ucs4/ndebug/PyQt5/sipmodule.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/asset/common/software/thirdparty/pyQt/5.12.2-build2/arch/linux-centos7/x86_64/qt5.12/python2.7/ucs4/ndebug/PyQt5/sip.py",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/asset/common/software/thirdparty/pyQt/5.12.2-build2/arch/linux-centos7/x86_64/qt5.12/python2.7/ucs4/ndebug/PyQt5/sip.pyc",
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,
Zac



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


More information about the PyQt mailing list