LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GNS3 install on slackware 12.1 (https://www.linuxquestions.org/questions/linux-software-2/gns3-install-on-slackware-12-1-a-655216/)

shammont 07-11-2008 08:37 PM

GNS3 install on slackware 12.1
 
Anyone got this to work on slackware 12.1?
I have installed requested libs. Everything installs fine. When I run it I get "Can't import Qt modules, PyQt is probably not installed." PyQt4 is installed and Qt4 is installed. I have put qt4 bin directory in path. Not sure what else to try.

Thanks

knudfl 07-13-2008 03:37 AM

Please tell, which package "PyQt4" you installed.

The answer ""Can't import Qt modules, PyQt is probably not installed.""
from 'gns3' appears only, when no PyQt4 is installed?. Wrong version gives :
Quote:

Traceback (most recent call last):
File "/usr/bin/gns3", line 35, in ?
raise RuntimeError, "Need Qt v4.3 or higher,
but got v%s" % QtCore.QT_VERSION_STR
RuntimeError: Need Qt v4.3 or higher, but got v4.2.2
and it's not about Qt4, but PyQt4. ( My qt4 = 4.3.2 )

Things I did : 1) compile and install sip-4.7.6 from
http://freshmeat.net/projects/python...ease_id=278150
http://www.riverbankcomputing.com/so.../sip/download/

And 2) : compile and install PyQt4-4.4.3
( PyQt-x11-gpl-4.4.3-snapshot-20080705.tar.gz ) from
http://www.riverbankcomputing.co.uk/.../pyqt/download
( version 4.4.2 has a bug, 4.4.3 includes all bug fixes )

Regards

PS : No need to put qt4 bin in the path, pyqt will know it, build
with 'python configure.py --qmake=/usr/lib/qt4/bin/qmake'

shammont 07-13-2008 10:39 AM

thanks
 
after hours of working, deleted all files and reference to sip and reinstalled latest version of sip. fixed it. problem was because python crashed trying to import module sip.

thanks again

orgack 04-23-2010 08:44 AM

I've got the same problem now. Could you tell me what exactly files did you delete and what versions of the packages did you install at the end? Thanks

knudfl 04-24-2010 06:59 AM

@ orgack , post #4 : welcome to LQ. .. .. :)

The latest GNS3 is version 0.7 .

Are you using Debian 5 Lenny ? Please tell.
( May behave different from Slackware 12.1 ).

And a few more words about your errors, please.
..

orgack 04-24-2010 12:40 PM

Hi! I'm using Debian Squeeze and I've compiled and installed PyQt-4.7.3, sip 4.10.2 and even all Qt libraries 4.6.2 (only take me 5 hours :/). After this I try to run GNS3 and always obtain same error:

../NS3-0.6-src# ./gns3
Can't import Qt modules, PyQt is probably not installed ...

../NS3-0.7-src# ./gns3
Can't import Qt modules, PyQt is probably not installed ...

Quote:

Originally Posted by knudfl (Post 3212827)
Please tell, which package "PyQt4" you installed.

The answer ""Can't import Qt modules, PyQt is probably not installed.""
from 'gns3' appears only, when no PyQt4 is installed?. Wrong version gives :

and it's not about Qt4, but PyQt4. ( My qt4 = 4.3.2 )

Things I did : 1) compile and install sip-4.7.6 from
http://freshmeat.net/projects/python...ease_id=278150
http://www.riverbankcomputing.com/so.../sip/download/

And 2) : compile and install PyQt4-4.4.3
( PyQt-x11-gpl-4.4.3-snapshot-20080705.tar.gz ) from
http://www.riverbankcomputing.co.uk/.../pyqt/download
( version 4.4.2 has a bug, 4.4.3 includes all bug fixes )

Regards

PS : No need to put qt4 bin in the path, pyqt will know it, build
with 'python configure.py --qmake=/usr/lib/qt4/bin/qmake'

I've also proved this and neither is it my solution.

knudfl 04-24-2010 03:12 PM

Well, you will have to find out,
which versions fit together, and with GNS.

Why not use the default packages,
that can be installed with 'apt-get install <package>
? ? Please tell the reason. Nobody says, that latest is best !

GNS3-0.6 may not work with those.? Did you try with GNS3-0.7 ?
..
P.S. : GNS3-0.6 and GNS3-0.7 work perfect with these :
(libqt4-devel-4.5.3) , python-qt4-4.5 , python-sip-4.8
............. on PCLinuxOS 2009.2 .............

And....... python-qt4-4.7 , python-sip-4.10
.............. on PCLinuxOS 2010. ...........

No " -dev " packages required.
..


All times are GMT -5. The time now is 06:38 AM.