New version of Python for Maemo released

It was announced yesterday on the maemo developers mailing list and reported by some bloggers already, that new version of Python for Maemo has arrived. Project has recently moved from Sourceforge to Maemo Garage and the version of Python language was updated from 2.4 to 2.5. The new runtime package should work on both the Nokia 770 and the new Nokia N800.

I’m really expecting to start experimenting with this on N800. I already found a neat example on how to access the webcam using Python. I just need to install the new SDK and then I’m ready to go. I also noticed that the new site lists also my year-old tutorials in the documents section so I probably need to start updating them as I learn new things about the new Python for Maemo.

I’m really glad to see also that Python has started to gain interest of more Maemo developers. Obscura by Martin Grimme seems really promising. There aren’t any releases out there yet, but I think I’m downloading it from the subversion and trying it out. Here is some more info about it if have missed it earlier.

10 Responses to “New version of Python for Maemo released”

  1. AErik Says:

    Just bought a n800 and have never done anything with Linux or Python – but want to jump in.

    Noticed that the Python for Maemo site says to delete any existing 2.4 apps – is there anything there already on a new n800 to worry about?

    Also the instructions seem to assume a familiarity with Linux both on PC & the Nokia (at least from a complete newbie view).

    If you have the time any more step-wise instruction would be greatly appreciated!

  2. Teemu Says:

    Hi,

    With out of package N800 there is nothing to worry about. You can safely install the Python 2.5 packages.

    Yes that is true that it requires quite a lot Linux experience especially to setup the Maemo SDK.

    I cannot promise anything too soon, since I’ve been quite busy recently, but I really would like to update my age old tutorials.

    Good luck with your Python development. :)

  3. pointer Says:

    really like your blog, it’s so great. i’m a new comer to python & maemo world but fortunately i have some years of experience for linux and c language. i’ve been trying to find a complete api document for hildon ui for python on maemo sdk, but apparently you know it’s an impossible task… really couldn’t find such a good document. sad.

    could you tell me where can obtain such a thing. i searched at maemo.org and pymaemo… yes, indeed there are some helpful resources but i want to dig into python & maemo and feel a little confusing when meet some undocumented classes such as hildon.appview…

    otherwise if you could provide some valuable experience on how to get in it. nowadays i’m busy searching a huge number (hopefully) of open source application written in python under maemo platform to learn as much as possible…

    btw, you are a student from helsinki univ right? is there beautiful? i’m a student at dtu and planning to be exchanged to helsinki later this year… hoho thanks a lot in adv, mange tak..

  4. Teemu Says:

    Hi pointer,

    Thanks for your nice words. :)

    Yes, pymaemo is lacking a good documentation and its a shame. When I’ve coded with pymaemo I’ve mostly browsed the Hildon C API and tried to figure out how it goes with pymaemo. PyGTK documentation at http://www.pygtk.org is also very useful, since it covers all the parts of the UI programming that are not Hildon specific.

    I’ve been meaning to start working on my pymaemo tutorials again, since they are really outdated, but so far I’ve been too busy to do that.

    Yes, I’ve studied at the Helsinki University of Technology. I graduated about a year ago and I’m currently working. What comes to Helsinki, it is a nice place, although a rather cold place currently. Last week was between 20-30 degrees below zero. But if you come here during the summer it will probably be slightly warmer then. ;)

  5. pointer Says:

    hi Teemu, thanks for quick reply.
    yes i feel very excited that i can get much more information from hildon for c api document. it’s rather complete and nearly the same to python apis. thanks for that!!

    besides, i’m trying to do such a thing: draw something on top of a picture. i firstly tried using drawingarea or drawable over a gtk.image, but failed to do so. it seems i cannot set background image on a gtk window. recently i found you’ve ported pil library to maemo platform, that’s so nice. i can paste some bitmaps or draw sth directly on to an image. you have done such a great thing!

    but an annoying thing still bother me: after i paste a small picture, like some gif, onto a rather big png or jpeg or gif picture, the small gif loses color information. the transparency backgroud color vanishes, and the color of small gif changes… seems a little weird but i’m trying to figure it out. if any suggestion is available, would be appreciated…

    mange tak

  6. pointer Says:

    Teemu, i just figured my problem out.. quite nice.
    now i’m trying to paste an animated gif over a background image..

  7. Oskar Says:

    Teemu,

    I once read about your pil-package
    python2.4-imaging_1.1.6b1-1_armel.deb
    and used it quite heavily before I had to send my 770 in for repair. Now that I got it back after a record breaking 9 weeks repair time, re-flashing etc., I’m uneasy about re-installing it as I have Python 2.5 now and Mirage (which depends on 2.5). Mirage is great because it has a GUI but still lacks some features I used with pildriver script.

    Is there an easy way to use your pil-package with 2.5?

  8. Teemu Says:

    Hi,

    PIL should now be included in the latest official PyMaemo release. At least it is in the list of components included in the runtime package. http://pymaemo.garage.maemo.org/index.html#components

    - Teemu

  9. Oskar Says:

    I didn’t find the pildrver-script, though. Mhm.. Let’s search again…

    Thx for your answer, though :D

  10. jeroen Says:

    Dear web-master ! I looked your site and I want to say that yor very well

Leave a Reply


blog.teemu.im is Digg proof thanks to caching by WP Super Cache