You are not logged in.

#1 2008-03-03 02:16:22

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

ImportError: No module named qt [SOLVED]

I'm having a problem whereby qt cannot be found and all applications that use it fail to load.
I have installed qt, qt3 and qt4 so, missing packages cannot be the issue.
Issuing echo $QTDIR returns /opt/qt so the path is found, yet when I run any applications that depend on QT  I get: ImportError: No module named qt

I noticed other threads with a similar problem but non of them have an answer that applies to me. Does anyone have any ideas? 
I thought that posting here may be a better choice, since in a programming forum there should be people using python and if this is a known problem an answer will surely be at hand wink

Thanks in advance.

R.

Last edited by ralvez (2008-03-15 17:14:32)

Offline

#2 2008-03-03 02:26:58

SiC
Member
From: Liverpool, England
Registered: 2008-01-10
Posts: 430

Re: ImportError: No module named qt [SOLVED]

Check your /etc/ld.so.conf make sure that it has /opt/qt/lib in there somewhere.

Offline

#3 2008-03-03 02:36:22

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: ImportError: No module named qt [SOLVED]

SiC,

Thanks for the reply. I would say it is :

/usr/X11R6/lib

# End of file
/opt/kde/lib
/opt/qt/lib
/opt/gnome/lib
/usr/lib/libfakeroot

any other ideas?

R.

Last edited by ralvez (2008-03-03 02:36:47)

Offline

#4 2008-03-15 15:51:02

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: ImportError: No module named qt [SOLVED]

I continue to investigate this issue with no success.
Anyone else having similar problems? I find difficult to believe I'm the only one since the problem seems to have spread in my systems, including my laptop and my main system.

It has to be some setting/package name that was changed or something...

Any help will be appreciated.

R

Offline

#5 2008-03-15 16:32:48

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: ImportError: No module named qt [SOLVED]

Hello!

Official qt package is qt 4.
I don't know where you found qt4 package ( from community??) but you should uninstall it.

$QTDIR is only used by qt3 now. You can see each qt3 variable in /etc/profile.d/qt3.sh.

What exactly do you want to build or do?

@+

Offline

#6 2008-03-15 17:14:01

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: ImportError: No module named qt [SOLVED]

@Shaika-Dzari,

Thanks for your reply. Yes, I know that the "official" QT package is 4.
I have two programs, one that I wrote and Kodos (a nice tool for RegEx testing/coding). Both started to fail with the same error a few weeks ago.
Querying my system for info indicated that I have both QT3 and QT4 but in actual execution mode QT4 was not detected.

I just did something a few minutes ago that got things back to work !!  cool

pacman -Sy pyqt pyqt3

After re-installing both of the packages things are back to normal ... interestingly enough, re-installing PyQT only, which given the error would seem the logical thing to do, did not solve the problem (??) I had to re-install both.

Thanks again for posting.

R.

Offline

#7 2008-03-15 17:19:03

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: ImportError: No module named qt [SOLVED]

you're welcome wink

Offline

Board footer

Powered by FluxBB