×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Looking at inbox causes python to exit

    Hi,

    I apologise if I've missed something simple, but I've searched for an answer and can't find it, so hopefully you can help.

    I am writing a small app to simply read aloud text messages. I'm using the S60 3rd Ed SDK and am using a N95 8GB to test.

    import inbox
    import audio

    # STATEMENT 1 : This works
    audio.say("I am here")

    # STATEMENT 2: This is where it exits
    box = inbox.Inbox()

    # STATEMENT 3: and this doesn't happen...
    audio.say("but I don't get here")


    I have converted the python script to SIS file using ensymble. This gets the warnings for default ID, version and certificate.

    I am not currently using any certificates, this seems too expensive for what should be something so simple. If this was a problem I'd expect a more sensible error.

    The SIS file installs fine on the phone, but when it runs it only reaches statement 1 and then crashes out. I've tried many example scripts that look at Inbox all do the same thing, more or less.

    Please help.

    Thanks in advance.

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

    Re: Looking at inbox causes python to exit

    Which PyS60 version you are using: 1.4.x or 1.9.x?

    Cheers,

    --jouni

  3. #3
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Looking at inbox causes python to exit

    You most likely need the ReadUserData or ReadDeviceData capability (I used all capabilities and it worked).

    When making the SIS with Ensymble, specify the capabilities you need
    Code:
    ensymble.py py2sis --caps=ReadUserData+ReadDeviceData+... myscript.py
    Then sign the resulting SIS file at https://www.symbiansigned.com/app/pa...ignedOnline.do with all the capabilities you specified when making it.

  4. #4
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Re: Looking at inbox causes python to exit

    Quote Originally Posted by bogdan.galiceanu View Post
    You most likely need the ReadUserData or ReadDeviceData capability (I used all capabilities and it worked).

    When making the SIS with Ensymble, specify the capabilities you need
    Code:
    ensymble.py py2sis --caps=ReadUserData+ReadDeviceData+... myscript.py
    Then sign the resulting SIS file at https://www.symbiansigned.com/app/pa...ignedOnline.do with all the capabilities you specified when making it.
    Thank you - that's worked.

Similar Threads

  1. Python for S60 1.9.4 is now released
    By tvijayan in forum Symbian
    Replies: 9
    Last Post: 2009-05-27, 10:39
  2. New to Python for S60 (PyS60)? Read this first!
    By croozeus in forum Nokia N9
    Replies: 2
    Last Post: 2008-10-17, 19:23
  3. Replies: 11
    Last Post: 2007-10-03, 19:46
  4. Python for sony ericsson
    By nibss in forum Symbian
    Replies: 1
    Last Post: 2006-07-27, 23:19
  5. 7650 Exit() vs User::Exit(0)
    By mikebrin in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2003-05-26, 15:35

Posting Permissions

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