| Reply | « Previous Thread | Next Thread » |
|
Hi ...
I had a python script that uses 'import calendar' and a small piece of code to add appointments Code:
new_entry = db.add_appointment() new_entry.set_time(now+last,now+last+hour) new_entry.content=goal new_entry.location='Location:Facebook' new_entry.commit() But after converting into sis ... and successfully installing it on my N73 device .. I find that the app runs and exits before syncing my appointments with calender I have tried the following options as capabilities Code:
sudo ensymble_python2.5-0.25.py py2sis --appname="Dani" --shortcaption="go4it." -caps="NetworkServices+LocalServices+ReadUserData+WriteUserData+Location" --caption="My Application"--version=1.2.3 --verbose /home/irayan/py2sis/myapp.py |
| dani2mobile |
| View Public Profile |
| Find all posts by dani2mobile |
|
Quote:
As I understand it, the only valid caps for a self-signed SIS are: NetworkServices, LocalServices, ReadUserData, WriteUserData, and UserEnvironment. It's possible that the inclusion of the 'Location' cap is causing ensymble to fail in some way. There should be a clue when you install the SIS on the devices, as it should pop-up a warning listing the capabilities you have requested when installing a self-signed SIS. Try removing the 'Location' cap, and see if that helps. If not, make sure you include the output from ensymble in any followup post. The other possibility is that your script is trying to import another script which you have not included in the SIS file. |
|
To get a better picture of where your stand-alone application halts, you can enclose the script in an exception harness. You'll get an exception dump if the program fails for some reason.
Not an issue here, but "sudo" is not needed. Ensymble does not require root capability on UNIX/Linux. |
|
Hi..Thanks aya42 for replying, I tried porting the script again, into sis using ONLY the following capabilities
Code:
C:\Python25>python ensymble_python2.5-0.25.py py2sis --appname="Dani" --shortcaption="go4it." -caps="Net workServices+ReadUserData+WriteUserData" --caption="My Application"--version=1.2.3 --verbose myapp.py Code:
ensymble_python2.5-0.25.py: warning: no application version given, using 1.0.0 ensymble_python2.5-0.25.py: warning: no UID given, using auto-generated test UID 0xe305818a ensymble_python2.5-0.25.py: warning: no certificate given, using insecure built-in one Input file(s) synCHRONUSoff.py Output SIS file synCHRONUSoff_v1_0_0.sis UID 0xe305818a Application name Dani Version 1.0.0 Language(s) EN Icon <default> Short caption(s) go4it. Long caption(s) My Application--version=1.2.3 Install drive <any> Text file(s) <none> Certificate <default> Private key <default> Capabilities 0x0 (NONE) Vendor name(s) Ensymble Autostart No Still, I face the same issue ... "The python script" runs perfectly and makes appropriate entries into calender ... but the sis file after getting perfectly installed exists before making entries to calender @jethro.fn ... Thanks for replying, I still need to implement your suggestion and check ... |
| dani2mobile |
| View Public Profile |
| Find all posts by dani2mobile |
|
There's the clue.
And there's the problem. Change "-caps" to "--caps". |
|
Thanks aya42 and others ... I now, have my app running perfectly!!! ... I wud like to have more information over removing the warning [due to self signed py2sis conversion] during the app installation.
|
| dani2mobile |
| View Public Profile |
| Find all posts by dani2mobile |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| S60 2nd to 3rd/ PlatformSecurity / Capabilities | jarkoos | Installation, Certification and Security | 4 | 2007-04-14 15:08 |
| API capability requirements | mark_williams | General Symbian C++ | 52 | 2006-07-27 10:45 |
| What is Illegal Capability | Roose | General Symbian C++ | 2 | 2006-03-09 16:07 |
| How to avoid insertion of duplicate entries in device calendar?? | symnewbie | General Symbian C++ | 1 | 2005-10-27 23:52 |
| Problem in Deleting all the calendar entries? | symnewbie | General Symbian C++ | 0 | 2005-06-17 15:19 |