Hi
Please help, I'm running out of hair to pull from my head.
I'm trying to generate a standalone instalable application I'm developing.
To keep things simple I'm first going thru the process with a tested program (from the Mobile Python site) examples. Since installation was failing I wrapped it with the debug code #2 from the wiki. Code is as follows:
Code:try: import inbox, appuifw, e32 def show_list(msgs): msgs.sort() items = [] for msg in msgs: items.append(msg[1][:15]) appuifw.selection_list(items) def sort_time(): msgs = [] for sms_id in box.sms_messages(): msgs.append((-box.time(sms_id), box.content(sms_id))) show_list(msgs) def sort_sender(): msgs = [] for sms_id in box.sms_messages(): msgs.append((box.address(sms_id), box.content(sms_id))) show_list(msgs) def sort_unread(): msgs = [] for sms_id in box.sms_messages(): msgs.append((-box.unread(sms_id), box.content(sms_id))) show_list(msgs) def quit(): print "INBOX SORTER EXITS" app_lock.signal() box = inbox.Inbox() appuifw.app.exit_key_handler = quit appuifw.app.title = u"Inbox Sorter" appuifw.app.menu = [(u"Sort by time", sort_time), (u"Sort by sender", sort_sender), (u"Unread first", sort_unread)] print "INBOX SORTER STARTED" app_lock = e32.Ao_lock() app_lock.wait() 1 / 0 except: import sys import traceback import e32 import appuifw appuifw.app.screen="normal" # Restore screen to normal size. appuifw.app.focus=None # Disable focus callback. body=appuifw.Text() appuifw.app.body=body # Create and use a text control. applock=e32.Ao_lock() def quit():applock.signal() appuifw.app.exit_key_handler=quit # Override softkey handler. appuifw.app.menu=[(u"Exit", quit)] # Override application menu. body.set(unicode("\n".join(traceback.format_exception(*sys.exc_info())))) applock.wait() # Wait for exit key to be pressed. appuifw.app.set_exit()
I'm using a 3rd ed phone 6120c so I'm using ensymble which is working. The command line is something like:
Then I'm signing (open signed) the sis with all capabilities in www.symbiansigned.com.Code:ensymble py2sis --uid=0xE1234567 --icon=vs1.svg --appname="Example" --shortcaption="Example." --caption="Example" --version=1.2.3 --verbose test.py
Python 1.4.5 is installed in my phone:
PythonForS60_1_4_5_3rdEd.sis 587124 82415 None
PythonScriptShell_1_4_5_3rdEd_unsigned_testrange.SIS 19648 5080 None (after open signing it)
(actually I've read I don't need to sign the shell for installed SIS applications, but I'm still doing it anyways)
The thing is I'm still gettting:
SymbianError: [Errno -46] KErrPermissionDenied
like if the capabilities were not there...

Reply With Quote

Not logical, have to make a feature request to Symbian Foundation about this somehow...

