qml - PyQt5 QtQuick Error - "libQt5Network undefined symbol: _Z24qt_subtract_from_timeoutii" -


after installing pyqt5.5.1 qt5.5.1 on ubuntu 14.04 successfully, ran simple pyqt file using qtquick , met error:

libqt5network.so.5: undefined symbol: _z24qt_subtract_from_timeoutii

anyone has run before?

thanks.

python.py:

# main function if __name__ == '__main__':  # create main app myapp = qapplication(sys.argv)  # create label , set properties applabel = qquickview() applabel.setsource(qurl('basic.qml'))  # show label applabel.show()  # execute application , exit myapp.exec_() sys.exit() 

basic.qml:

grid {     id: colorpicker      rows: 2; columns: 3; spacing: 3      rectangle { color: "white";}     rectangle { color: "green";}     rectangle { color: "blue"; }     rectangle { color: "yellow";}     rectangle { color: "steelblue";}     rectangle { color: "black";} } 

the reason installed python-qt5, based on older qt5 version.

with

find / -name libqt* 

i see old qt lib residing in /usr/lib folder:

/usr/lib/i386-linux-gnu/libqt5network.so /usr/lib/i386-linux-gnu/libqt5network.so.5 /usr/lib/i386-linux-gnu/libqt5network.so.5.2 /usr/lib/i386-linux-gnu/libqt5network.so.5.2.1  /home/tad/qt5.5.1/gcc/lib/libqt5network.so.5.5 /home/tad/qt5.5.1/gcc/lib/libqt5network.so /home/tad/qt5.5.1/gcc/lib/libqt5network.so.5.5.1 /home/tad/qt5.5.1/gcc/lib/libqt5network.so.5  /home/tad/qt5.5.1/tools/qtcreator/lib/qtcreator/libqt5network.so.5 /home/tad/qt5.5.1/tools/qtcreator/lib/qtcreator/libqt5network.so.5.5.1 /home/tad/qt5.5.1/tools/qtcreator/lib/qtcreator/libqt5network.so.5 

the problem maybe inconsistent qt libs, remove qt libs in /usr/lib , replace them ones in home folder. worked!however not recommended since built-in ubuntu components may use libqt* in /usr/lib folders. so, remove python-qt5 , reinstall pyqt5 on again!

by way, error relating sip api version, have run remove sip-related packages reinstall sip again:

dpkg -l | grep sip 

then

sudo apt-get purge python3-sip python3-sip-dev 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -