maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   "ImportError: No module named PyQt4" (https://talk.maemo.org/showthread.php?t=42400)

omeriko9 2010-01-27 13:48

"ImportError: No module named PyQt4"
 
Hi,

I've downloaded and mounted the "out-of-the-box" image of ubuntu with ESBox wrapped inside.

I'm trying to compile & run the Pyside sample project called "pyqthelloworld".

The code does not compiles, and gives the error specified in the subject:

"ImportError: No module names PyQt4".

Please assist, what am I doing wrong?

attila77 2010-01-27 15:06

Re: "ImportError: No module named PyQt4"
 
If you're using PySide that should be import PySide and not PyQt4...

omeriko9 2010-01-27 18:57

Re: "ImportError: No module named PyQt4"
 
Quote:

Originally Posted by attila77 (Post 497569)
If you're using PySide that should be import PySide and not PyQt4...

Sorry, I thought that Python+Qt4 on n900 is called Pyside.

So I'm not using Pyside, I'm using PyQt4. And it's not me actually, it's the pyqt helloworld that comes with ESBox.

fatalsaint 2010-01-28 03:25

Re: "ImportError: No module named PyQt4"
 
You need to first install the python2.5-qt4 files

Code:

apt-get install python2.5-qt4-gui
and maybe the dev files:
Code:

apt-get install python2.5-qt4-dev python2.5-qt4-dev-tools
ETA: Make sure you're using python2.5 as well if in the SDK.

omeriko9 2010-01-28 17:44

Re: "ImportError: No module named PyQt4"
 
Quote:

Originally Posted by fatalsaint (Post 498783)
You need to first install the python2.5-qt4 files

Code:

apt-get install python2.5-qt4-gui
and maybe the dev files:
Code:

apt-get install python2.5-qt4-dev python2.5-qt4-dev-tools
ETA: Make sure you're using python2.5 as well if in the SDK.

OMG thank you!!! that was exactly what I was missing!!

Now it compiles and runs and finally I can start developing for n900..


All times are GMT. The time now is 07:32.

vBulletin® Version 3.8.8