You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Python for UIQ - 2006-11-21, 19:16

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
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.
Reply With Quote

#2 Old Re: Python for UIQ - 2006-11-22, 01:02

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
Sure. Are you a volunteer?
Reply With Quote

#3 Old Re: Python for UIQ - 2006-11-22, 13:59

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
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?
Reply With Quote

#4 Old Re: Python for UIQ - 2006-11-22, 22:27

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
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.
Reply With Quote

#5 Old Re: Python for UIQ - 2006-11-22, 22:38

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
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?
Reply With Quote

#6 Old Re: Python for UIQ - 2006-11-22, 22:42

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
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.
Reply With Quote

#7 Old Re: Python for UIQ - 2006-11-23, 09:56

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
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!

Quote:
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
Reply With Quote

#8 Old Re: Python for UIQ - 2006-11-23, 10:00

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
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.
Reply With Quote

#9 Old Re: Python for UIQ - 2006-11-23, 16:38

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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/
Reply With Quote

#10 Old Re: Python for UIQ - 2006-11-23, 17:53

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
Quote:
Originally Posted by cyke64
No, as I said:
Quote:
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....
Reply With Quote

#11 Old Re: Python for UIQ - 2006-12-02, 20:58

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
So?
Any chance to port Python to UIQ "ignoring" any user interface?
Last edited by cassioli : 2006-12-05 at 13:51.
Reply With Quote

#12 Old Re: Python for UIQ - 2006-12-04, 19:31

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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/
Reply With Quote

#13 Old Re: Python for UIQ - 2006-12-05, 14:29

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
Nice find!
I'll check it.
Thanks.
Reply With Quote

#14 Old Re: Python for UIQ - 2006-12-08, 13:48

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
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???
Reply With Quote

#15 Old Re: Python for UIQ - 2006-12-11, 16:59

Join Date: Dec 2004
Posts: 40
gotan
Offline
Registered User
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?
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia