Reply
Thread Tools
Posts: 13 | Thanked: 3 times | Joined on Feb 2010
#1
Hello,
I am running into a problem with the SDK and appear to be unable to find a solution. A little help is appreciated...

I am trying to get a Python dev environment setup to follow the book "Rapid GUI Programming with Python and Qt".
When I try to start idle I get the error: " IDLE can't import Tkinter. Your Python may not be configured for Tk."

I have looked around and found various guides mentioning mysterious packages with names like maemo-python-env or python2.5-sdk but my apt-get will not find them...
"E: Couldn't find package maemo-python-env"

Here is what I have done so far...
1) the SDK is running on Debian and installed without a problems, Xephyr starts and I can navigate the desktop
2) I installed python 2.5 from within scratchbox
apt-get install python2.5 python2.5-dev

and this is where I am now, I tried searching for a tk package but apt-cache search does not return anything valid....
 
Posts: 13 | Thanked: 3 times | Joined on Feb 2010
#2
I think the problem might be that I was missing the repo
deb http://repository.maemo.org/extras-devel/ fremantle free non-free

I added it and see A LOT more python stuff now. I'll report back when I get this fixed
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#3
The easiest way around is not to run the IDE inside the SDK. Since you don't need to compile anything, unless you want to use some Maemo APIs/calls, it's much easier to develop on your 'regular' choice of desktop OS, and then just copy over to your device (or, if you DO need to test APIs, develop outside of SDK, run inside).
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Posts: 13 | Thanked: 3 times | Joined on Feb 2010
#4
Originally Posted by attila77 View Post
The easiest way around is not to run the IDE inside the SDK. Since you don't need to compile anything, unless you want to use some Maemo APIs/calls, it's much easier to develop on your 'regular' choice of desktop OS, and then just copy over to your device (or, if you DO need to test APIs, develop outside of SDK, run inside).
Thanks I will keep this in mind.

I think I have found the problem now. The above repo did give me access to more python dev packages, including the "not found" packages from my first post.

The remaining problem appears to be that
$ python
will launch python 2.3.4 which does not have Tkinter
$ python.25
on the other hand will execute
>>> import Tkinter
without fuss, so it looks like I need to rearrange a few symlinks and should be good to go.
 
Posts: 13 | Thanked: 3 times | Joined on Feb 2010
#5
bahh, time to setup a Python dev under ARCH Linux. This scratchbox thingy does not like me.
It will not switch the default Python over to 2.5 for some reason and it will not allow me to move the actual bin file .... permission denied as root

Thanks for the suggest. I'll work on my main system and will test in the SDK or directly on my N900.
 
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#6
I assume you have seen this thread, Python and Qt in 30 mins


http://talk.maemo.org/showthread.php?t=43663

and linux version

http://talk.maemo.org/showthread.php...347#post461347

and customize uis

http://talk.maemo.org/showthread.php?t=44281
__________________
N900_Email_Options Wiki Page
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:17.