---------- Forwarded message ----------<br>From: Jebagnana Das <<a href="mailto:jebagnanadas@gmail.com">jebagnanadas@gmail.com</a>><br>To: <a href="mailto:python-list@python.org">python-list@python.org</a><br>Date: Sat, 21 Nov 2009 19:17:56 +0530<br>
Subject: problem with pyqt.. help please...<br><span><span>Hi friends,
<br>             I've recently changed to ubuntu 9.04.. I've not had
any problem with the installation of pyqt as it is available from the
ubuntu repositories with umpteen number of packages.. Anyhow i've to
download tarball file for python 3.1 and installed it.. I found that
PyQt4 supports python 3.1(Am i right?)..
<br><br>I wanted to check the pyqt installation with a sample program..
<br><br>import sys
<br>from PyQt4 import QtGui
<br>app=QtGui.QApplication(sys.argv)
<br>widget=QtGui.QWidget()
<br>widget.resize(250,150)
<br>widget.setWindowTitle('Simple')
<br>widget.show()
<br>sys.exit(app.exec_())
<br><br>when i issued the command
<br>$python simple.py
<br>it worked perfectly since it's executed with 2.6 installation..
<br>But when i tried to execute it with
<br>$python3 simple.py
<br>it showed the error like
<br>ImportError: No module named PyQt4
<br>So i searched the sys.path for 2.6 and included
<br>/usr/lib/python2.6/dist-packages
<br>in python3 sys.path...
<br>Now when i tried to run this with python3 <img> the error is like..
<br>ImportError: /usr/lib/python2.6/dist-packages/PyQt4/QtGui.so: undefined symbol: PyString_FromString <img><br>I
got the same error when i tried to execute another program... So can u
please tell me how to solve this problem?? Am i heading in the right
direction???... <img><img><br><br>Thanks & Regards... 
<br><br>Jebagnanadas,<br>Python Learner..<br><br>...........................................<br>it just looks like your problem is on setting your installation paths. Have a look here:<br><a href="http://www.linux.org/docs/ldp/howto/Nvidia-OpenGL-Configuration/instqt.html">http://www.linux.org/docs/ldp/howto/Nvidia-OpenGL-Configuration/instqt.html</a><br>
<a href="http://www.linuxforums.org/forum/debian-linux-help/108948-setting-path-qt.html">http://www.linuxforums.org/forum/debian-linux-help/108948-setting-path-qt.html</a><br><br>Check and follow the steps. It should fix your problem.<br>
- ThreaderSlash.<br>
        
                
<div><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; min-height: 60px; width: 468px;"><br></ins></div></span></span><br><input id="gwProxy" type="hidden"><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML">
</div>