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?
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.
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.
mmmhh...Originally Posted by jplauril
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.
That's exactly what I was thinking about!Originally Posted by jplauril
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 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 go googleing for OPL sockest, anyway
is it this you are talking about?Originally Posted by cassioli
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 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !
Find my pys60 extension modules on cyke64.googlepages.com
No, as I said:Originally Posted by cyke64
Don't know why it does not work.I know about an existing attempt of porting Python to UIQ (I mean 2.x version), but it does not work on Motorola a1000.
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 12: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 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !
Find my pys60 extension modules on cyke64.googlepages.com
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???
Any idea what other things need to be done? has anyone attempted to even try and compile pys60 under the S80 SDK?Originally Posted by jplauril