hi Guy
i notice that GNS3 0.8.7 official release can not work under arch linux with pyqt4 environment installed, error prompt as follow
Code:
Need Qt v4.6 or higher, but got v%s" % QtCore.QT_VERSION_STR
i read the gns3 initiation file of which filename is gns3.pyw , a python script
here is what i saw
Code:
if QtCore.QT_VERSION < 0x040600:
raise RuntimeError, "Need Qt v4.6 or higher, but got v%s" % QtCore.QT_VERSION_STR
if QtCore.PYQT_VERSION < 0x040500:
raise RuntimeError, "Need PyQt v4.5 or higher, but got v%s" % QtCore.PYQT_VERSION_STR
the QT and PyQt versions need to be checked before running the application
so i wrote another simple Python script to print which version did gns3 get
Code:
1 #!/usr/bin/python
2 import sys, os, time, traceback
3 print "++++++++++++++"
4 print sys.version_info
5 from PyQt4 import QtCore, QtGui
6 print "QtCore.QT_VERSION_STR=" + QtCore.QT_VERSION_STR
7 print "QtCore.QT_VERSION="+QtCore.QT_VERSION
8 print "QtCore.PYQT_VERSION_STR="+QtCore.PYQT_VERSION_STR
as the outpunt is
Code:
QtCore.QT_VERSION_STR=4.8.6
QtCore.QT_VERSION=40806
QtCore.PYQT_VERSION_STR=4.11.2
looks like the pyqt version does not meet the qualification of gns3 required.
i start the next step to fix the problem
pacman -S pyqt
there is only python-pyqt4-4.11.2 can be installed
i try to import pyqt5 instead of pyqt4 in the script of gns3
but it print out the same error,
and i dont understand , my pyqt5 version is 5.3.2-1
it is still can meet the require of gns3, the QtCore.QT_VERSION_STR output 0x050302,is totally over 0x040600, why i got the same error.
does anyone run gns3 successfully with kernel 3.16 on archlinux up to date 2014-10-01, please tell me your solution.