Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to install Eric Python IDE 5 in my CentOS 6.4. The problem here is even I have installed PyQT4 its again saying that module is missing. what I am supposed to do ? here is the terminal log

[root@localhost eric5-5.3.5]# yum install PyQt4
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * epel: mirrors.vinahost.vn
 * extras: centos.excellmedia.net
 * rpmfusion-free-updates: mirror.us.leaseweb.net
 * updates: centos.excellmedia.net
Setting up Install Process
Package PyQt4-4.6.2-9.el6.i686 already installed and latest version
Nothing to do
[root@localhost eric5-5.3.5]# python3 install.py 
Checking dependencies
Python Version: 3.3.2
Sorry, please install PyQt4.
Error: No module named 'PyQt4'
[root@localhost eric5-5.3.5]# 

how can I solve this issue ?

share|improve this question
add comment

2 Answers 2

Your PyQT4 module is installed on the default python (in this case python 2.6).

You can verify this by running:

$ python
>>> import PyQT4

I suggest you install PyQT4 from source (download and run python3 setup.py install).

share|improve this answer
add comment

You're using the python3 interpreter but the PyQt4 you get from the repo's is for python 2.6:

[root@ditirlns02 cups]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@ditirlns02 cups]# rpm -ql PyQt4
/usr/lib/python2.6/site-packages/PyQt4
/usr/lib/python2.6/site-packages/PyQt4/Qt.so
/usr/lib/python2.6/site-packages/PyQt4/QtAssistant.so
/usr/lib/python2.6/site-packages/PyQt4/QtCore.so
/usr/lib/python2.6/site-packages/PyQt4/QtDesigner.so
/usr/lib/python2.6/site-packages/PyQt4/QtGui.so
/usr/lib/python2.6/site-packages/PyQt4/QtHelp.so
/usr/lib/python2.6/site-packages/PyQt4/QtNetwork.so
[.....snip.....]

So that's basically why your install script isn't finding it: it's being installed for the wrong interpreter.

I might ask how you got python 3.0 on there, since it doesn't look like it's in the official repo's for RHEL/CentOS 6 either. If you found a third party repo, there may be a specific PyQt4 package for python 3.0 as well. Otherwise, you may have to try to build PyQt4 from source.

share|improve this answer
    
from source i have taken –  AgentCool Nov 8 '13 at 2:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.