You Are Here:

Community: Developer Discussion Boards

#1 Old Looking at inbox causes python to exit - 2009-04-28, 09:03

Join Date: Mar 2009
Posts: 2
garygreenhill
Offline
Registered User
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.
Reply With Quote

#2 Old Re: Looking at inbox causes python to exit - 2009-04-28, 10:39

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Which PyS60 version you are using: 1.4.x or 1.9.x?

Cheers,

--jouni
Reply With Quote

#3 Old Re: Looking at inbox causes python to exit - 2009-04-28, 14:25

Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
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.
Reply With Quote

#4 Old Re: Looking at inbox causes python to exit - 2009-04-28, 18:18

Join Date: Mar 2009
Posts: 2
garygreenhill
Offline
Registered User
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.
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
Python for S60 1.9.4 is now released tvijayan Python 9 2009-05-27 11:39
New to Python for S60 (PyS60)? Read this first! croozeus Python 2 2008-10-17 20:23
[announce] Mobile Python book soon in Sept 2007 ! cyke64 Python 11 2007-10-03 20:46
Python for sony ericsson nibss Python 1 2006-07-28 00:19
7650 Exit() vs User::Exit(0) mikebrin Symbian Networking & Messaging 2 2003-05-26 16:35

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