You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old How to make a native py app on 3RDEd ? - 2006-07-27, 16:29

Join Date: Jul 2006
Posts: 42
Location: Kyiv(Ukraine)
Send a message via ICQ to Santehnik
Santehnik
Offline
Registered User
Hello
How to make a native python app on S60 3RD Edition ?
As do appmgr on S60 2ND edition
Reply With Quote

#2 Old Unhappy Re: How to make a native py app on 3RDEd ? - 2006-07-29, 18:32

Join Date: Feb 2005
Posts: 18
makuchaku
Offline
Registered User
Hi,

I'm in a fix too... with this symbian signing thing!

This is what i've figured out till now...

I want to access contacts, which require ReadDeviceData capabilities. Simply accessing contacts cause python to crash.

If you check out https://www.symbiansigned.com/app/page/freeware , you'll find that you need to build your app & submit it for a cert through which you can get the access to such capabilities. But the problem here is... if you dont have such capabilities in the first place, how do you develop even a simplest running prototype???

It seems like a vicious circle to me!

Can anyone please throw some light on this?

Thanks,
Makuchaku
http://makuchaku.info
Reply With Quote

#3 Old Re: How to make a native py app on 3RDEd ? - 2006-07-29, 22:29

Join Date: Jul 2006
Posts: 42
Location: Kyiv(Ukraine)
Send a message via ICQ to Santehnik
Santehnik
Offline
Registered User
The cert is no problem to me. i don't use Special capability i need make icon in menu to my prog !
Reply With Quote

#4 Old Re: How to make a native py app on 3RDEd ? - 2006-07-30, 16:42

Join Date: Feb 2005
Posts: 18
makuchaku
Offline
Registered User
But does py2sis works for 3rd editions?
Reply With Quote

#5 Old Re: How to make a native py app on 3RDEd ? - 2006-07-30, 17:19

Join Date: Jul 2006
Posts: 42
Location: Kyiv(Ukraine)
Send a message via ICQ to Santehnik
Santehnik
Offline
Registered User
Think no because S60 3Rd Edition have new file system model
Reply With Quote

#6 Old Re: How to make a native py app on 3RDEd ? - 2006-08-02, 16:41

Join Date: Jul 2006
Posts: 42
Location: Kyiv(Ukraine)
Send a message via ICQ to Santehnik
Santehnik
Offline
Registered User
My PKG File
Code:
&EN
#{"MyProg"},(0xF9000001),1,0,0
%{"Santehnik"}
; Unique Vendor name
:"Santehnik"
[0xF9000001], 0, 0, 0, {"Series60ProductID"}
;Files to install
"files\sys\bin\MyProg.exe" - "!:\sys\bin\MyProg_0xF9000001.exe"
"files\resource\apps\MyProg.rsc" - "!:\resource\apps\MyProg.rsc"
"files\private\10003a3f\import\apps\MyProg_reg.rsc" - "!:\private\10003a3f\import\apps\MyProg_reg.rsc"
"files\resource\apps\MyProg_aif.mif" - "!:\resource\apps\MyProg_aif.mif"
"files\private\F9000001\MyProg.py" - "!:\private\F9000001\default.py"
When i installing it to phone they says Unable Install what i do wrong ?
(UID in MyProg_0xF9000001.exe and other files i changed to F9000001)
Reply With Quote

#7 Old Re: How to make a native py app on 3RDEd ? - 2006-08-03, 14:25

Join Date: Aug 2006
Posts: 1
unusedbyte
Offline
Registered User
Quote:
Originally Posted by Santehnik
My PKG File
Code:
&EN
#{"MyProg"},(0xF9000001),1,0,0
%{"Santehnik"}
; Unique Vendor name
:"Santehnik"
[0xF9000001], 0, 0, 0, {"Series60ProductID"}
;Files to install
"files\sys\bin\MyProg.exe" - "!:\sys\bin\MyProg_0xF9000001.exe"
"files\resource\apps\MyProg.rsc" - "!:\resource\apps\MyProg.rsc"
"files\private\10003a3f\import\apps\MyProg_reg.rsc" - "!:\private\10003a3f\import\apps\MyProg_reg.rsc"
"files\resource\apps\MyProg_aif.mif" - "!:\resource\apps\MyProg_aif.mif"
"files\private\F9000001\MyProg.py" - "!:\private\F9000001\default.py"
When i installing it to phone they says Unable Install what i do wrong ?
(UID in MyProg_0xF9000001.exe and other files i changed to F9000001)
You have to add correct Series60ProductID.
For S603rd use this:
Code:
[0x101F7961 ], 0, 0, 0, {"Series60ProductID"}
List of some UIDs is avalaible from here: http://www.newlc.com/Common-products-UIDs.html
Reply With Quote

#8 Old Re: How to make a native py app on 3RDEd ? - 2006-08-03, 20:56

Join Date: Jul 2006
Posts: 42
Location: Kyiv(Ukraine)
Send a message via ICQ to Santehnik
Santehnik
Offline
Registered User
tnx
I have downloaded py src but py2sisi don't work (says error 13 V:\src\py2sis\build)
Reply With Quote

#9 Old Re: How to make a native py app on 3RDEd ? - 2006-09-26, 02:15

Join Date: Oct 2003
Posts: 31
jiayaoyu
Offline
Registered User
Quote:
Originally Posted by makuchaku
Hi,

I'm in a fix too... with this symbian signing thing!

This is what i've figured out till now...

I want to access contacts, which require ReadDeviceData capabilities. Simply accessing contacts cause python to crash.

If you check out https://www.symbiansigned.com/app/page/freeware , you'll find that you need to build your app & submit it for a cert through which you can get the access to such capabilities. But the problem here is... if you dont have such capabilities in the first place, how do you develop even a simplest running prototype???

It seems like a vicious circle to me!

Can anyone please throw some light on this?

Thanks,
Makuchaku
http://makuchaku.info

Yes, I agree it is difficult. It would be much easier if the dev certificate supports Read/WriteDeviceData (http://discussion.forum.nokia.com/fo...ad.php?t=88999)

For now before you get the more powerful devcert, here are some ideas : You can develop your app on the emulator first, which doesn't require the Read/WriteDeviceData capability. Then get it signed in the freeware process.
Another option is to develop your app on sdk 2.0 first, then port to sdk 3.0
Last edited by jiayaoyu : 2006-09-26 at 02:24.
Reply With Quote

#10 Old Re: How to make a native py app on 3RDEd ? - 2006-09-26, 14:27

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by Santehnik
tnx
I have downloaded py src but py2sisi don't work (says error 13 V:\src\py2sis\build)
Don't bother with that. Here's a simpler approach.

1. Go to http://www.nbl.fi/jussi.ylanen/ensymble.html and download a suitable pre-squeezed version of Ensymble for your version of Python. Put the script in some suitable directory, e.g. ~/bin (if using a Unix-like system).

2a. On Unix-like systems (Linux, OS X), make the downloaded script runnable:

Code:
$ chmod +x ensymble_python2.x-0.11.py
2b. On Windows, download the Stunnel OpenSSL binaries (openssl.zip) and extract them somewhere, e.g. C:\OpenSSL\bin. Then add that directory to your command search path: My Computer->Properties->Advanced->Environment Variables->System Variables->Path. Only newly opened Command Prompt windows will use the new path!

3a. On Unix-like systems, simply run the Ensymble script (type everything on one line):

Code:
$ ensymble_python2.x-0.11.py py2sis --uid=0xfxxxxxxx --icon=myicon.svg
--appname="MyApp" --shortcaption="My App." --caption="My Application"
--version=1.2.3 --verbose myapp.py
3b. On Windows, run the Ensymble script using a Python interpreter (type everything on one line):

Code:
> python ensymble_python2.x-0.11.py py2sis --uid=0xfxxxxxxx
--icon=myicon.svg --appname="MyApp"  --shortcaption="My App."
--caption="My Application" --version=1.2.3 --verbose myapp.py
If your application needs network connectivity or other special capabilities, there is the --caps option. For short help on options, type:

Code:
ensymble_python2.x-0.11.py py2sis -h
Hope this helps!
Reply With Quote

#11 Old Re: How to make a native py app on 3RDEd ? - 2006-09-26, 14:44

Join Date: Sep 2006
Posts: 7
Santehnik.UA
Offline
Registered User
Thanx VERY MUCH!!!
IT WORKS FOR ME!
Reply With Quote

#12 Old Re: How to make a native py app on 3RDEd ? - 2006-10-05, 01:54

Join Date: Nov 2005
Posts: 8
0x45455844
Offline
Registered User
please help

it says to me
"ensymble.py: wrong pass phrase"
and result sis is 0 bytes

what could i do wrong?
Reply With Quote

#13 Old Re: How to make a native py app on 3RDEd ? - 2006-10-05, 13:02

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by 0x45455844
please help

it says to me
"ensymble.py: wrong pass phrase"
and result sis is 0 bytes

what could i do wrong?
OK. What operating system you are using: Linux/OS X/Windows/other?

What is the exact command line you type before getting the error message?

By default, Ensymble uses a certificate with no pass phrase. The --passphrase option should only be used when you need to use your own certificate and that certificate has a pass phrase.
Reply With Quote

#14 Old Re: How to make a native py app on 3RDEd ? - 2006-10-05, 13:06

Join Date: Nov 2005
Posts: 8
0x45455844
Offline
Registered User
Quote:
OK. What operating system you are using: Linux/OS X/Windows/other?

What is the exact command line you type before getting the error message?

By default, Ensymble uses a certificate with no pass phrase. The --passphrase option should only be used when you need to use your own certificate and that certificate has a pass phrase.
i'm using python 2.5 on Win XP Pro system
running with the following commandline:
Code:
E:\symbian9\python>ensymble.py py2sis --uid=0xf7775555 --appname="dxpl" --shortcaption="dxpl" --caption="dxpl" --version=1.0.0 --verbose dxplb.py
where dxplb.py is my python s60 script
Reply With Quote

#15 Old Re: How to make a native py app on 3RDEd ? - 2006-10-05, 13:28

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by 0x45455844
i'm using python 2.5 on Win XP Pro system
running with the following commandline:
Code:
E:\symbian9\python>ensymble.py py2sis --uid=0xf7775555 --appname="dxpl" --shortcaption="dxpl" --caption="dxpl" --version=1.0.0 --verbose dxplb.py
where dxplb.py is my python s60 script
Hmm. There's nothing wrong with the command line. In fact, I was able to make a working SIS package on a Windows XP system by creating a dummy "dxplb.py" file.

So, the problem must be in running the OpenSSL binary. Ensymble searches the "openssl.exe" command from directories on PATH and uses the first one it finds. Maybe there's something wrong with your installation of OpenSSL? Try the following command and copy the result here (mine says "OpenSSL 0.9.7f 22 Mar 2005"):

Code:
openssl version
Also, make sure you're using Ensymble version 0.11. The 0.10 version does not support Windows at all.
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
How to build GCCE target dsiorpaes Symbian Tools & SDKs 5 2008-09-18 07:54
s60 3th. Building error. sberserker Symbian Tools & SDKs 11 2006-03-09 12:38
Native app: press exit twice bercobeute Python 4 2006-02-26 18:02
How to modify app caption name and app short caption name? ld_road General Symbian C++ 3 2004-12-09 10:00
Communication with native Symbian app on Nokia 7650 LiamQ Mobile Java General 1 2002-08-01 13: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