×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    43

    Unhappy Please help. Open signing my SIS app but still getting KErrPermissionDenied

    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:


    Code:
    ensymble py2sis --uid=0xE1234567 --icon=vs1.svg --appname="Example" --shortcaption="Example." --caption="Example" --version=1.2.3 --verbose test.py
    Then I'm signing (open signed) the sis with all capabilities in www.symbiansigned.com.

    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...

  2. #2
    Registered User
    Join Date
    Oct 2008
    Posts
    43

    Re: Please help. Open signing my SIS app but still getting KErrPermissionDenied

    Good grief !!! I found it. I thought adding capabilities was not needed at ensymble but only when signing the sis.



  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: Please help. Open signing my SIS app but still getting KErrPermissionDenied

    Quote Originally Posted by carlosl View Post
    Good grief !!! I found it. I thought adding capabilities was not needed at ensymble but only when signing the sis.
    Heh, I've done same mistake few times: got to add capabilities TWICE Not logical, have to make a feature request to Symbian Foundation about this somehow...

    Cheers,

    --jouni

  4. #4
    Registered User
    Join Date
    Oct 2008
    Posts
    43

    Re: Please help. Open signing my SIS app but still getting KErrPermissionDenied

    My application is almost finished. It wouldn't have been possible without all the hints, tips, code, etc etc from this great forum.

    This is indeed a very helpful forum.

    Thanks all.

Similar Threads

  1. App Signing
    By stevejanko in forum Mobile Java General
    Replies: 9
    Last Post: 2009-04-14, 20:56
  2. Open Online Signing for J2ME
    By ronald29 in forum Mobile Java General
    Replies: 1
    Last Post: 2008-12-18, 10:54
  3. SIS that is not shown in app manager
    By suckho in forum Symbian
    Replies: 8
    Last Post: 2007-06-06, 09:39
  4. symbian signed testing problem.
    By anglina in forum Symbian
    Replies: 0
    Last Post: 2007-02-01, 10:15
  5. code signing for symbian app
    By YuanShao in forum Symbian
    Replies: 1
    Last Post: 2005-03-14, 16:03

Posting Permissions

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