<span class="ul-threaded" style="margin: 1em 0pt 0pt -20px;"><span class="text-cell">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 class="smiley" src="http://old.nabble.com/images/smiley/anim_working.gif"> the error is like..
<br>ImportError: /usr/lib/python2.6/dist-packages/PyQt4/QtGui.so: undefined symbol: PyString_FromString <img class="smiley" src="http://old.nabble.com/images/smiley/anim_confused.gif"><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 class="smiley" src="http://old.nabble.com/images/smiley/anim_crazy.gif"><img class="smiley" src="http://old.nabble.com/images/smiley/anim_crazy.gif"><br><br>Thanks & Regards... 
<br><br>Jebagnanadas,<br>Python Learner..<br>
        
                
<div class="ad"><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 60px; position: relative; visibility: visible; width: 468px;"><br></ins></div></span></span>