You Are Here:

Community: Developer Discussion Boards

#1 Old positioning API gets KErrPermissionDenied - 2008-12-12, 13:21

Join Date: Nov 2007
Posts: 6
cbcrack
Offline
Registered User
I have a Python code signed in symbiansigned online (i don't have a cer file to use with ensymble) with all permissions.

I get KErrPermissionDenied error when trying to access any of the positioning api.

I have also tried to execute it in PythonScriptShell_1_4_5 and get the same error.
(I'm testing in N95 8gb)

Thanks!
Reply With Quote

#2 Old Re: positioning API gets KErrPermissionDenied - 2008-12-12, 13:32

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
For you standalone application: did you specify the capabilities when creating it with Ensymble (--caps=Location+...)?

For your Script Shell: are you using the standard Shell (PythonScriptShell_1_4_5_3rdEd.SIS) or one that you signed yourself with all the capabilities (PythonScriptShell_1_4_5_3rdEd_unsigned_testrange.SIS)?
Reply With Quote

#3 Old Re: positioning API gets KErrPermissionDenied - 2008-12-12, 13:51

Join Date: Nov 2007
Posts: 6
cbcrack
Offline
Registered User
if I specify --caps=Location in ensymble py2sis, when I try to install appears: 'neccesary access to application not granted'
for my Script Shell i'm using the standard: (PythonScriptShell_1_4_5_3rdEd.SIS)

I have read another post but th solution requires to signsis with ensymble, and I couldn't.
Reply With Quote

#4 Old Re: positioning API gets KErrPermissionDenied - 2008-12-12, 13:56

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by cbcrack View Post
if I specify --caps=Location in ensymble py2sis, when I try to install appears: 'neccesary access to application not granted'
This is explained in the FAQ (sticky topic: "New to Python for S60 (PyS60)? Read this first!").

You need to do both. Tell Ensymble what capabilities you want enabled and then Open Sign the resulting SIS file and select the same set of capabilities there. Ensymble controls what capabilities an application has enabled while Open Signed online controls what capabilities the SIS file is allowed to have enabled.
Reply With Quote

#5 Old Smile Re: positioning API gets KErrPermissionDenied - 2008-12-12, 14:08

Join Date: Nov 2007
Posts: 6
cbcrack
Offline
Registered User
ok!!. I understand It.
I test and now works.
do you know how to obtain my cer file to sign offline (to do tests quickly)

many thanks for your response!
Reply With Quote

#6 Old Re: positioning API gets KErrPermissionDenied - 2008-12-12, 15:03

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by cbcrack View Post
ok!!. I understand It.
I test and now works.
do you know how to obtain my cer file to sign offline (to do tests quickly)

many thanks for your response!
If you want to use Open Signed Offline, you need to buy a Publisher ID, unfortunately


BR,

Rafael.
Reply With Quote

#7 Old Question Re: positioning API gets KErrPermissionDenied - 2009-08-21, 16:23

Join Date: Aug 2009
Posts: 7
Tschacko
Offline
Registered User
Hey guys !

I did set in ensymble the Location cap to be needed. (Also tried setting all other caps to be needed)

And I signed the sis on symbian signed. The changed their system to autodetect the caps you need, I guess. Can't select the caps I need. Thats new.

But doing so I still receive the KErrPermission Denied thing ?

What am I doing wrong ?
Reply With Quote

#8 Old Re: positioning API gets KErrPermissionDenied - 2009-08-21, 16:45

Join Date: Sep 2008
Posts: 175
Location: London, UK
the86hitman's Avatar
the86hitman
Offline
Regular Contributor
Quote:
Originally Posted by Tschacko View Post
Hey guys !

I did set in ensymble the Location cap to be needed. (Also tried setting all other caps to be needed)

And I signed the sis on symbian signed. The changed their system to autodetect the caps you need, I guess. Can't select the caps I need. Thats new.

But doing so I still receive the KErrPermission Denied thing ?

What am I doing wrong ?
Hi there! and welcome to the forum.

are you also trying to convert your python script to an application?
does it work in python shell?


The86Hitman
PyS60 1.9.7 on E71
http://www.drhtailor.com/pys60
Reply With Quote

#9 Old Question Re: positioning API gets KErrPermissionDenied - 2009-08-21, 17:28

Join Date: Aug 2009
Posts: 7
Tschacko
Offline
Registered User
I want to make it standalone yes. Yes it works in the python shell. Just installed the PythonScriptShell_1.9.7_high_capas.sis to have access to Location which I need.

But with ensymble and setting Additional Options to --caps=Location and signing it on symbian signed it fails...

any suggestions ?
Last edited by Tschacko : 2009-08-21 at 17:42.
Reply With Quote

#10 Old Re: positioning API gets KErrPermissionDenied - 2009-08-21, 17:50

Join Date: Aug 2009
Posts: 7
Tschacko
Offline
Registered User
It works ! after I installed PythonScriptShell_1.9.7_high_capas.sis I dont get the neccesary access to application not granted message anymore when I try to install my signed sis APP....weird.
Reply With Quote

#11 Old Re: positioning API gets KErrPermissionDenied - 2009-08-21, 18:25

Join Date: Sep 2008
Posts: 175
Location: London, UK
the86hitman's Avatar
the86hitman
Offline
Regular Contributor
Quote:
Originally Posted by Tschacko View Post
It works ! after I installed PythonScriptShell_1.9.7_high_capas.sis I dont get the neccesary access to application not granted message anymore when I try to install my signed sis APP....weird.
LoL! well thats the crazy world of symbian! it probably still uses the python script shell libraries therefor shell must have the minimum requirements.. thats y i recommend people sign everything!


The86Hitman
PyS60 1.9.7 on E71
http://www.drhtailor.com/pys60
Reply With Quote

#12 Old Re: positioning API gets KErrPermissionDenied - 2009-09-12, 01:28

Join Date: Jul 2009
Posts: 9
finnsmama
Offline
Registered User
where did you get the PythonScriptShell_1.9.7_high_capas.sis you installed?
Reply With Quote

#13 Old Re: positioning API gets KErrPermissionDenied - 2009-09-12, 06:35

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by finnsmama View Post
where did you get the PythonScriptShell_1.9.7_high_capas.sis you installed?
hello finnsman

Its very simple just download PythonForS60.exe and install it in your system. Then you will get all sis files in the directory Installation Drive:\\PythonForS60\PythonDependencies.

Regards,


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#14 Old Re: positioning API gets KErrPermissionDenied - 2009-09-19, 23:05

Join Date: Mar 2003
Posts: 564
cassioli's Avatar
cassioli
Offline
Super Contributor
A summary of the method to be used to be able to access location API both from script and from shell would be cool...
Also, I have not clear the difference among python 1.4.x and 1.9.x for what concerns access to location: is it possible also in 1.4.x? How?
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
PC Suite error: (Code: Init IMediaControl2) HELP?! chunkyspudmonkey General Discussion 29 2008-06-30 12:47
Is there a C++ API for the video player avbrozhko General Symbian C++ 9 2008-06-06 15:34
How to obtain Location API Tiger79 Mobile Java Tools & SDKs 1 2007-04-27 06:37
Browser Control API questions Víctor Penela General Symbian C++ 0 2007-04-23 18:01
SyncML API example or tutorial rab_gandhi Symbian Networking & Messaging 0 2005-03-07 05:52

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