Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-12-2012, 07:34 AM
|
#1
|
LQ Newbie
Registered: May 2012
Posts: 6
Rep:
|
Can't import Qt modules, PyQt is probably not installed ...
hi i am new with linux and i need to install GNS3 on my centos O.S...
i used this link to do this !!!
http://networkingtips-tricks.blogspo...l-gns3-on.html
every thing was ok and it's working correctly but after i reboot it's give me a message that tell me :Can't import Qt modules, PyQt is probably not installed ...
and i think the problem found when i follow this instructions at the last website which said:
Update for Centos:
Users of Centos get this error "Need Python 2.6 or higher" after following the above steps. The problem is, there is no way to upgrade Python 2.4 to 2.6. Because upgrading to 2.6 will break the OS.The solution is to install Python 2.6 alongside 2.4. So here are the steps to install Python 2.6 from the source
[user@admin ~]$ su
Password: (Type in your root password here)
[root@admin /]#wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz tar -zxvf Python-2.6.6.tgz cd Python-2.6.6 ./config && make && make install
Add the install path (/usr/local/bin/python : by default) to ~/.bash_profile as follow :
PATH=$PATH:$HOME/bin:/usr/local/bin/python2.6
Now follow the steps given at the top page,
Change python configure.py to python2.6 configure.py under Next we'll install SIP and Next we'll Install PyQt4.
so as i think there is problem with version compatible between something
appreciate any help ....
thanx alot
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
05-13-2012, 12:01 AM
|
#2
|
Member
Registered: May 2008
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 82
Rep:
|
Quote:
Originally Posted by nawras_ch
hi i am new with linux and i need to install GNS3 on my centos O.S...
i used this link to do this !!!
http://networkingtips-tricks.blogspo...l-gns3-on.html
every thing was ok and it's working correctly but after i reboot it's give me a message that tell me :Can't import Qt modules, PyQt is probably not installed ...
and i think the problem found when i follow this instructions at the last website which said:
Update for Centos:
Users of Centos get this error "Need Python 2.6 or higher" after following the above steps. The problem is, there is no way to upgrade Python 2.4 to 2.6. Because upgrading to 2.6 will break the OS.The solution is to install Python 2.6 alongside 2.4. So here are the steps to install Python 2.6 from the source
[user@admin ~]$ su
Password: (Type in your root password here)
[root@admin /]#wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz tar -zxvf Python-2.6.6.tgz cd Python-2.6.6 ./config && make && make install
Add the install path (/usr/local/bin/python : by default) to ~/.bash_profile as follow :
PATH=$PATH:$HOME/bin:/usr/local/bin/python2.6
Now follow the steps given at the top page,
Change python configure.py to python2.6 configure.py under Next we'll install SIP and Next we'll Install PyQt4.
so as i think there is problem with version compatible between something
appreciate any help ....
thanx alot
|
What have you tried here? Have you attempted to install python2.6 alongside 2.4? What version of CentOS are you using and what kernel?
|
|
|
05-13-2012, 09:50 AM
|
#3
|
LQ Newbie
Registered: May 2012
Posts: 6
Original Poster
Rep:
|
Quote:
Originally Posted by djsoundfx
What have you tried here? Have you attempted to install python2.6 alongside 2.4? What version of CentOS are you using and what kernel?
|
thanx for your attention...
yes i installed python2.6 alongside 2.4...
and don't now to remove it again...
because GNS was works well with python 2.4
and my centos kernal
CentOS release 6.2 (Final)
i know that after i typed this command:
cat /etc/*-release
wish i answer what you asking me for ...
and thanx a lot...
|
|
|
05-13-2012, 10:05 AM
|
#4
|
Member
Registered: May 2008
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 82
Rep:
|
Also, to find your kernel version its 'uname -r' but I don't think that I need that anymore.
Okay, what version of GNS3 are you trying to install?
You said it was working does this mean you just upgraded?
Are you sure that PyQt, Qt and the other dependencies have been installed? They may need to be upgraded if you just recently upgraded your GNS version.
|
|
|
05-13-2012, 10:33 AM
|
#5
|
LQ Newbie
Registered: May 2012
Posts: 6
Original Poster
Rep:
|
Quote:
Originally Posted by djsoundfx
Also, to find your kernel version its 'uname -r' but I don't think that I need that anymore.
Okay, what version of GNS3 are you trying to install?
You said it was working does this mean you just upgraded?
Are you sure that PyQt, Qt and the other dependencies have been installed? They may need to be upgraded if you just recently upgraded your GNS version.
|
my kernel version is "2.6.32-220.13.1.el6.i686" .... and the GNS version is unknown to me
but i install it from "nchc.dl.sourceforge.net/project/gns-3/GNS3/0.7.4/GNS3-0.7.4-src.tar.bz2"
sir if you attention i do every thing that website tell me to do but at the end they tell me to update by saying :
Update for Centos:
Users of Centos get this error "Need Python 2.6 or higher" after following the above steps. The problem is, there is no way to upgrade Python 2.4 to 2.6. Because upgrading to 2.6 will break the OS.The solution is to install Python 2.6 alongside 2.4. So here are the steps to install Python 2.6 from the source
and before i do it gns was works well but after that it broken and after i type #"/opt/GNS3/gns3"
appear to me message thats tell me ... "Can't import Qt modules, PyQt is probably not installed ..."
and i will so appreciate if you tell me how to upgrade PyQt,Qt note that i do not upgrade GNS version
Last edited by nawras_ch; 05-13-2012 at 10:35 AM.
|
|
|
05-13-2012, 11:23 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
There is no python 2.4 on CentOS 6. Unless you changed the system python.
( The python 2.4 referred text is about CentOS 5.)
The command : 'python --version' or '/usr/bin/python --version'
.. will usually reply with the system version : Python 2.6.6
Removing a manually installed python : There is no uninstall.
You will simply have to delete all the files.
The GNS3 version on the GNS3 site is 0.8.2
http://www.gns3.net/ >>> http://www.gns3.net/download/
> GNS3 v0.8.2 bz2
PyQt : # yum search pyqt
# yum install PyQt4-devel
And the command 'python gns3' will open the GNS3 GUI OK.
.
Last edited by knudfl; 05-13-2012 at 11:25 AM.
|
|
|
05-14-2012, 11:15 PM
|
#7
|
LQ Newbie
Registered: May 2012
Posts: 6
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
There is no python 2.4 on CentOS 6. Unless you changed the system python.
( The python 2.4 referred text is about CentOS 5.)
The command : 'python --version' or '/usr/bin/python --version'
.. will usually reply with the system version : Python 2.6.6
Removing a manually installed python : There is no uninstall.
You will simply have to delete all the files.
The GNS3 version on the GNS3 site is 0.8.2
http://www.gns3.net/ >>> http://www.gns3.net/download/
> GNS3 v0.8.2 bz2
PyQt : # yum search pyqt
# yum install PyQt4-devel
And the command 'python gns3' will open the GNS3 GUI OK.
.
|
i really do what you tell me to do and i think my problem solved unless i faced an other GUI problem :
the error message tell me after typing #python gns3 :
No protocol specified
gns3: cannot connect to X server :0.0
and no thing appear to me sir ... so can you help me to know what exactly can i do to solve it ...
Last edited by nawras_ch; 05-14-2012 at 11:16 PM.
|
|
|
05-15-2012, 03:33 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 7.
Quote:
No protocol specified
gns3: cannot connect to X server :0.0
|
Just install GNS3 in /home/<user-name>/ : = Default location.
And then run 'python gns3' as unprivileged user.
Please do not run applications as root.
... 'root' is for administrative tasks only.
.
|
|
|
05-15-2012, 09:27 AM
|
#9
|
LQ Newbie
Registered: May 2012
Posts: 6
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
# 7.
Just install GNS3 in /home/<user-name>/ : = Default location.
And then run 'python gns3' as unprivileged user.
Please do not run applications as root.
... 'root' is for administrative tasks only.
.
|
you are the best really ... all appreciate and thank you very very very much for helping me ...
its working very well ...
but while am adding a router message appear to me telling me :
"can not start Dynamips on port 7200 "
i know its a problem that related about the GNS3 program but i hope you have something to tell me about that ...
"note: i add the IOS but the Test of Dynamips field"
i hope i don't bother you again and again ...
and all regards for you sir...
Last edited by nawras_ch; 05-15-2012 at 09:36 AM.
|
|
|
05-15-2012, 11:35 AM
|
#10
|
Member
Registered: May 2008
Distribution: Gentoo, Ubuntu, RHEL, CentOS, BSD, Solaris
Posts: 82
Rep:
|
Quote:
Originally Posted by nawras_ch
you are the best really ... all appreciate and thank you very very very much for helping me ...
its working very well ...
but while am adding a router message appear to me telling me :
"can not start Dynamips on port 7200 "
|
This error is usually caused by an issue with the path to the dynamips file so ensure that is correct under preferences. It also can be an issue with permissions in the working directory so check our permissions or try a different working directory. Though if that doesn't help you may have better luck researching that issue on the GNS forums.
|
|
2 members found this post helpful.
|
05-15-2012, 03:12 PM
|
#11
|
LQ Newbie
Registered: May 2012
Posts: 6
Original Poster
Rep:
|
Quote:
Originally Posted by djsoundfx
This error is usually caused by an issue with the path to the dynamips file so ensure that is correct under preferences. It also can be an issue with permissions in the working directory so check our permissions or try a different working directory. Though if that doesn't help you may have better luck researching that issue on the GNS forums.
|
that's right it's something about the path ...
but it's working well now and thanks about your help...
|
|
|
All times are GMT -5. The time now is 12:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|