Can't import Qt modules, PyQt is probably not installed ...
Linux - NewbieThis 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.
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.
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
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.
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
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?
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.
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,493
Rep:
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.
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.
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 ...
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...
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.