×

Discussion Board

Results 1 to 15 of 142

Thread: Python for UIQ

Hybrid View

  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
    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?

  8. #8
    Registered User
    Join Date
    Jul 2005
    Posts
    33

    Re: Python for UIQ

    UIQ support PersonalJava that seem ~ Java1.1.8
    ,so Jython (J Python) can run on UIQ
    ,but somehow it error to run jython.jar.
    You need to install jython on your PC and extract jython.jar into folder package
    ,before put it to UIQ.

    And You need JythonConsole in awt-version(J4SP.py)
    you can D/L (J4SP.py+Jython) here...
    http://www.smart-mobile.com/forum/viewtopic.php?t=98932

    Program JRun in JCompile APP. make it easy to run .class-file in UIQ
    (no need .sis , .aif) only set JRun.txt
    -cp C:\jython -Dpython.home=C:\jython org.python.util.jython C:\jython\j4sp.py
    http://www.freepoc.org/software.php

    I try to figure out how to make it in easy step...
    Happy New Year 2007...
    Last edited by bpitk; 2006-12-31 at 15:59. Reason: more info add

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

    Re: Python for UIQ

    Can any moderator change the thread title to "Python for UIQ 2"? (as long as this thread is about UIQ 2; if anybody is able to apply these posts to UIQ 3, please tell us!)

  10. #10
    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.
    how can I use S60 python modules on my UIQ phone?
    After installinh Jython, if I try "import sysinfo" I get "ImportError: no module named sysinfo" error. Are "modules" single files I can just copy into my phone?

Similar Threads

  1. Please help installing Python libraries on S60
    By ericroijen in forum Symbian
    Replies: 11
    Last Post: 2009-07-18, 10:43
  2. Python for Series 60 released on Forum Nokia!
    By eriksmartt in forum Symbian
    Replies: 5
    Last Post: 2009-07-14, 17:00
  3. Python 2.2? 2.3?
    By mflux in forum Symbian
    Replies: 3
    Last Post: 2006-06-26, 22:36
  4. Python C++ Extension with Callback crashing
    By diggerdeep in forum Symbian
    Replies: 2
    Last Post: 2005-11-10, 16:33
  5. 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
  •