I wrote a script that uses the positioning module. The script works fine in the emulator and when launched from the python shell on my phone.
I used ensymble to create a .sis file of my script and signed it using open signed (using my phone's IMEI).
The application should have access to all phone subsytems as i signed the application with all capabilities, but when i use the positioning module i get a access denied exception.
Here is a snippet of the application i wrote to test positioning in a .sis file.
The log file returned contains this text.
lock = e32.Ao_lock()
cla, exc, trbk = sys.exc_info()
excName = cla.__name__
excArgs = exc.__dict__["args"]
excArgs = "<no args>"
excTb = traceback.format_tb(trbk, 5)
errorString = repr(excName) + '-' + repr(excArgs) + '-' + repr(excTb) + '\n'
appuifw.note(u'Application errors, see log file for more information', "error")
file = open(u'e:\\Python\\SosLog.txt','a')
if __name__ == "__main__":
Why doesn't my application have access to the positioning module even though it was signed with this capability?
'SymbianError'-(-46, 'KErrPermissionDenied')-[' File "C:\\private\\e29f58f5\\default.py", line 351, in main\n print positioning.modules()\n', ' File "c:\\resource\\positioning.py", line 54, in modules\n return _pos_serv.modules()\n']