[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Building PyQt5.12 with Sip4.19.14 (Python2.7) on Cent7
From:       zac_123 <costerzachary () gmail ! com>
Date:       2020-03-26 0:50:00
Message-ID: 1585183800501-0.post () n6 ! nabble ! com
[Download RAW message or body]

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
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic