×

Discussion Board

Page 1 of 10 12345678910 LastLast
Results 1 to 15 of 142

Thread: Python for UIQ

  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Python for UIQ

    NOTE:
    this thread is about Jython (Python over PersonalJava) for UIQ; proper thread for REAL Python is here:

    http://discussion.forum.nokia.com/fo...d.php?t=104246

    Is it possible to port Python from s60 to UIQ platform?
    Last edited by cassioli; 2007-03-23 at 07:47.

  2. #2
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Python for UIQ

    Sure. Are you a volunteer?

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Python for UIQ

    Let me explain better...
    I know about an existing attempt of porting Python to UIQ (I mean 2.x version), but it does not work on Motorola a1000.

    I'm not a skilled c++ programmer, I know just the basis of compiling ready-made symbina c++ sources or adding some minor improvements to a source (such as adding a call to a library not already included in the project).

    Is that enough to compile python for UIQ? Or should the code be heavily rewritten?

  4. #4
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Python for UIQ

    The code uses mostly Symbian APIs, so most modules work directly. The one thing that will need to be completely rewritten is the appuifw module.

    So no, it's not just a matter of recompiling, if you want to have a user interface for your apps.

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Python for UIQ

    Quote Originally Posted by jplauril
    The code uses mostly Symbian APIs, so most modules work directly. The one thing that will need to be completely rewritten is the appuifw module.

    So no, it's not just a matter of recompiling, if you want to have a user interface for your apps.
    mmmhh...
    I don't actually need python for its user interface, but for its "binding" to the hardware, as I usually develop in OPL, whose libraries are no more updated since 2 years.
    Being able to write a "skeleton" app in python which just accepts keypresses would be enough, as I could easily "send keypresses" to other apps using OPL, i.e. I could control the python app at my will.

    So, is it possible to compile python without user interface module?
    Or is it just a crazy question?

  6. #6
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Python for UIQ

    It is possible to compile Python without the user interface (with some alterations to the code), but you'd get just an app with no user interface whatsoever. I.e., a background "daemon" process. I assume OPL has access to local TCP sockets? If so, you could start a Python process in the background and communicate with it using sockets over the local network interface. This has been done before to hook up Python to different languages.

  7. #7
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Python for UIQ

    Quote Originally Posted by jplauril
    It is possible to compile Python without the user interface (with some alterations to the code), but you'd get just an app with no user interface whatsoever. I.e., a background "daemon" process.
    That's exactly what I was thinking about!

    I assume OPL has access to local TCP sockets? If so, you could start a Python process in the background and communicate with it using sockets over the local network interface. This has been done before to hook up Python to different languages.
    I don't know anything about sockets in OPL (or in any other language, actually...), but, as I said, I can have an OPL program "controlling" any application by sending it keystrokes, just like if an user was interacting with that application through the keyboard.

    I go googleing for OPL sockest, anyway

  8. #8
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Python for UIQ

    Quote Originally Posted by cassioli

    I go googleing for OPL sockest, anyway
    is it this you are talking about?
    http://www.starship.freeserve.co.uk/opx.html#CSOCKET
    http://www.starship.freeserve.co.uk/...n/file-toc.htm

    But this OPX extension is not compiled for UIQ, I should recompile it, and I don't know if it needs source fixing.

  9. #9
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Python for UIQ

    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  10. #10
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Python for UIQ

    Quote Originally Posted by cyke64
    No, as I said:
    I know about an existing attempt of porting Python to UIQ (I mean 2.x version), but it does not work on Motorola a1000.
    Don't know why it does not work.
    And also mShell for UIQ does not work.
    And also Perl for UIQ does not work.
    On this damned phone NOTHING does work!!!
    So, maybe, if I compile something by myself, I can see if there is any compilation error message and understand what to change....

  11. #11
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Python for UIQ

    So?
    Any chance to port Python to UIQ "ignoring" any user interface?
    Last edited by cassioli; 2006-12-05 at 12:51.

  12. #12
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: Python for UIQ

    hello ,

    I find UIQ Jython(Python in Java) working on (SonyEriccson P910i)

    This Guy succeed in making work a Jython console on a UIQ phone. I don't understand all(it's in an Asian language) but it use Jcompile , Personal Java and compile Jython 2.1

    links : http://isiam.blogspot.com/2006/12/jy...martphone.html
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  13. #13
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Python for UIQ

    Nice find!
    I'll check it.
    Thanks.

  14. #14
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Python for UIQ

    I am not able to install jython on mu uiq phone, due to "invalid manifest file" error. Tips?
    I can't understand how UIQ hanldes JAR files: there are some JAR which are intened for being INSTALLED, others for being STARTED (like an application); in what do they differ? I guess jython jar is "startable"... but how can I start it???

  15. #15
    Registered User
    Join Date
    Dec 2004
    Posts
    44

    Re: Python for UIQ

    Quote Originally Posted by jplauril
    The code uses mostly Symbian APIs, so most modules work directly. The one thing that will need to be completely rewritten is the appuifw module.

    So no, it's not just a matter of recompiling, if you want to have a user interface for your apps.
    Any idea what other things need to be done? has anyone attempted to even try and compile pys60 under the S80 SDK?

Page 1 of 10 12345678910 LastLast

Similar Threads

  1. Please help installing Python libraries on S60
    By ericroijen in forum Python
    Replies: 11
    Last Post: 2009-07-18, 10:43
  2. Python for Series 60 released on Forum Nokia!
    By eriksmartt in forum Python
    Replies: 5
    Last Post: 2009-07-14, 17:00
  3. Python 2.2? 2.3?
    By mflux in forum Python
    Replies: 3
    Last Post: 2006-06-26, 22:36
  4. Python C++ Extension with Callback crashing
    By diggerdeep in forum Python
    Replies: 2
    Last Post: 2005-11-10, 16:33
  5. How to capture a snapshot with Python on Series 60 phones?
    By harrygoesnokia in forum Symbian C++
    Replies: 0
    Last Post: 2004-07-18, 00:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •