×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    11

    SIS shutsdown immediately(3rd ED)

    Hi Folks,
    I am new to PyS60 and Symbian. I wrote a script which works fine as .py through the interpreter then i made a sis using ensymble (ensymble py2sis my_app.py) and installed it. When I run the installed app app starts and closes immediately without showing error message - please advise..

    Another question - If I make a python app for commercial use - I will need to merge the Python interpreter in the same sis file - does this mean that all my apps will be atleast 500+ KB in size because that is the size of the interpreter?

    PS: I am using pyS60 - 3rd Ed.

    Thanks.

  2. #2
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: SIS shutsdown immediately(3rd ED)

    Hi kashifrazzaqui and welcome to the Python Dibo,

    It seems that the application faces some error and thus quits immediately.
    To know what the error is you need to record it to a text file, and modify your code a bit.

    Code:
    def main():
        try:
            Your main code goes here.
        except:
            cla, exc, trbk = sys.exc_info()
            excName = cla.__name__
            try:
                excArgs = exc.__dict__["args"]
            except KeyError:
                excArgs = "<no args>"
            excTb = traceback.format_tb(trbk, 5)
            errorString = repr(excName) + '-' + repr(excArgs) + '-' + repr(excTb) + '\n'
            print errorString
            appuifw.note(u'Application errors, see log file for more information', "error")
            file = open(u'C:\\Log.txt','a')
            file.write(errorString)
            file.close()
            raise
    
    if __name__ == "__main__":
        main()
    Here when you check the Log (C:\\Log.txt) file after the application quits you will be able to find the error it face before quit.

    Yes, a python application always needs python on the device to work, so you will have to use the ensymble to merge it with your application file.And because of this the files size will obiviously increase.

    Hope that helps.

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    11

    Re: SIS shutsdown immediately(3rd ED)

    Thanks Pankaj, Will try and report the results. Are you in India?

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    11

    Re: SIS shutsdown immediately(3rd ED)

    This exception harness doesnt work - app still shuts down instantly. It leaves a message saying

    App. closed:Appname

    Also it doesnt write a log file.

    Any help will be appreciated
    Last edited by kashifrazzaqui; 2008-04-13 at 12:13.

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    11

    Re: SIS shutsdown immediately(3rd ED)

    Its a capability issue.
    Is there a document listing all required capabilities?

  6. #6
    Registered User
    Join Date
    Mar 2008
    Posts
    11

    Re: SIS shutsdown immediately(3rd ED)

    Here is a list of capabilities for anyone in the same situation as me

    --Signable Capabilities--
    LocalServices
    Location
    NetworkServices
    PowerMgmt
    ProtServ
    ReadDeviceData
    ReadUserData
    SurroundingsDD
    SwEvent
    TrustedUI
    UserEnvironment
    WriteDeviceData
    WriteUserData

    --Not Signable--
    CommDD
    MultimediaDD
    NetworkControl
    DiskAdmin
    DRM
    AllFiles
    TCB
    Regards,
    Kashif Razzaqui

  7. #7
    Registered User
    Join Date
    Mar 2008
    Posts
    11

    Re: SIS shutsdown immediately(3rd ED)

    Regards,
    Kashif Razzaqui

Similar Threads

  1. Replies: 2
    Last Post: 2009-07-14, 01:16
  2. Replies: 0
    Last Post: 2008-02-14, 10:27
  3. Multiple SIS files with and without executables/libraries
    By jappers in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2007-05-15, 17:06
  4. Sis of sis file
    By stenlik in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2007-01-16, 09:34

Posting Permissions

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