LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-13-2012, 06:29 AM   #1
saavedra29
Member
 
Registered: Aug 2010
Location: Greece
Distribution: slackware
Posts: 42

Rep: Reputation: 3
gns3 message: Can't import Qt modules, PyQt is probably not installed


Hello, I have gns3 installed from slackbuild and whenever i try to run it (either as root or user) i get the message:
Code:
Can't import Qt modules, PyQt is probably not installed
I have all the dependencies installed, also installed the PyQt4 from binary. Some days ago it was working fine without the PyQt4 (had some unimportant issues with the graphics).
Also the last days i installed Pygments, bpython and python3 (from slackbuid). Just to be sure i uninstalled them to get the system back to the point it was as i was suspecting them about this issue. Also i reinstalled the python2.6(from mirror) and the gns3(from slackbuild) just in case. But no lack..
Do you have any idea?
 
Old 03-13-2012, 12:09 PM   #2
dwblas
Member
 
Registered: Jun 2011
Posts: 87

Rep: Reputation: Disabled
You have Python2.6 and 3.X installed. PyQt is probably only installed in one version and the program may be calling the other version. See what version /usr/bin/python and/or /usr/bin/local/python point to. Note that you also have to have Qt installed. PyQt is just a Python wrapper for Qt.
 
1 members found this post helpful.
Old 03-13-2012, 01:28 PM   #3
saavedra29
Member
 
Registered: Aug 2010
Location: Greece
Distribution: slackware
Posts: 42

Original Poster
Rep: Reputation: 3
/usr/bin/python points to python2.6 and the folder /usr/bin/local does not exist. I have already uninstalled python3, bpython and Pygments.
installed packages:
Code:
PyQt-4.8.1-x86_64-1
python-2.6.6-x86_64-1
qt-4.7.0_7abde40-x86_64-3
 
Old 03-14-2012, 10:40 AM   #4
saavedra29
Member
 
Registered: Aug 2010
Location: Greece
Distribution: slackware
Posts: 42

Original Poster
Rep: Reputation: 3
Well PyQt is in the slackware mirror in l/. And it was uninstalled from my system, i don't know why. So i uninstalled the binary i had the last time and installed the one from the mirror and it works fine. Thanks!
 
Old 03-20-2019, 02:32 AM   #5
Mykey05
LQ Newbie
 
Registered: Mar 2019
Posts: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by saavedra29 View Post
Well PyQt is in the slackware mirror in l/. And it was uninstalled from my system, i don't know why. So i uninstalled the binary i had the last time and installed the one from the mirror and it works fine. Thanks!
Could you please show me the steps that you follow to fix this problem?
Thanks.
 
  


Reply

Tags
gns3



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't the system import modules from the Python Standard Library in Ubuntu? c00kiemonster Linux - General 1 01-23-2011 12:23 AM
error message undefined symbol when executing the command import from gasrine Ubuntu 7 11-26-2010 03:26 PM
python forcing zip import of dynamic modules Karimo Programming 1 04-18-2009 10:21 PM
PyQT: Unresolved import: graphics_rc eantoranz Programming 0 02-15-2008 10:31 AM
transcode - enabling import modules. abbott Linux - Newbie 2 06-17-2005 06:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration