Active Topics

 


Reply
Thread Tools
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#1
Hi, i'm a newbie programmer in python (though i have some experience in java and c++), wanting to program python on the n900 itself.

I've tried searching through the forums on how to install PyQt4 on the n900 but i found nothing that would help.

I've already added the extras-devel repository in the app manager and downloaded python for the n900, but i can't find PyQt anywhere.

Am i missing something?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#2
PyQt is just an apt-get away ! As root, in the console, do

apt-get install python2.5-qt4-gui
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#3
Thanks for the help, i'm not sure if its a problem with the repository, but this is the error i get in shell:
E:Couldn't find package python2.5-qt4-gui

i used
sudo gainroot , to gain root access and then

apt-get install python2.5-qt4-gui

Edit:
It did say
Reading package lists... Done
Building dependency tree
Reading state information... Done

before showing the error .
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#4
Hmmm, are you sure you enabled extras-devel and did an update after that ?
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#5
I'm thinking maybe it would make sense to make a PyQt-hello-world package. So when you install it it would pull in all dependencies...
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#6
yes, i tried to do an update, but there was an error message saying "Application list partially refreshed, some catalogues unavailable. Check catalogue details"

Under details:
"http://repository.maemo.org/extras-devel/dists/fremantle/Release No hash entry in Release file /var/lib/apt/lists.new/repository.maemo.org_extras-devel_dists_fremantle_Release"

the problem catalogue was the extras-devel.
My extras-devel settings:

Catalogue name: Maemo Extras-devel
Web address: http://repository.maemo.org/extras-devel/
Distribution: fremantle
Components: free non-free

Last edited by Zaeni; 2009-12-08 at 00:34.
 
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#7
how do i do a PyQt-hello-world package?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#8
Aha, there have been issues with the extras-devel repo apparently. Retry (the repository update) after a while (it's most likely a temporary issue). You can only use the packages from the repo if you update it successfully.

As for the hello world - no worries, I'll make one, I was just thinking out loud
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#9
Thanks attlia ! The repository seemed to be working again when i tried this morning, so i ran the apt-get command and it seemed to work as i created a mostly empty python script that did

import sys
from PyQt4 import QtGui, QtCore

print("test")

and it ran without complaints, previously it would give the error that PyQt4 could not be found =D

Many thanks again for your help!
 
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#10
I wanted to test my PyQt4 application in the SDK but even after a apt-get install python2.5-qt4-gui it still says "Cannot import PyQt4. Import name not found" (or something similar to this). Does anyone know how I can test PyQt4 applications in the SDK?
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:50.