|
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 08:47.
|
|
Sure. Are you a volunteer?
![]() |
|
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? |
|
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. |
|
Quote:
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? ![]() |
|
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.
|
|
Quote:
Quote:
I go googleing for OPL sockest, anyway |
|
Quote:
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. |
|
hello ,
There's a port of python 2.3.3 on UIQ and I don't know if it works on Motorola M1000 links : http://www.monkeyhouse.eclipse.co.uk/mobile/python.htm http://www.monkeyhouse.eclipse.co.uk.../PythonUIQ.SIS http://www.monkeyhouse.eclipse.co.uk...honSymbian.zip pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Quote:
Quote:
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.... |
|
So?
Any chance to port Python to UIQ "ignoring" any user interface?
Last edited by cassioli : 2006-12-05 at 13:51.
|
|
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,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Nice find!
I'll check it. Thanks. |
|
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??? |
|
Quote:
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Please help installing Python libraries on S60 | ericroijen | Python | 11 | 2009-07-18 11:43 |
| Python for Series 60 released on Forum Nokia! | eriksmartt | Python | 5 | 2009-07-14 18:00 |
| Python 2.2? 2.3? | mflux | Python | 3 | 2006-06-26 23:36 |
| Python C++ Extension with Callback crashing | diggerdeep | Python | 2 | 2005-11-10 17:33 |
| How to capture a snapshot with Python on Series 60 phones? | harrygoesnokia | General Symbian C++ | 0 | 2004-07-18 01:56 |