You Are Here:

Community: Developer Discussion Boards

#1 Old Python extension DLLs (PYDs) on 3rd Edition - 2006-11-02, 00:57

Join Date: Feb 2004
Posts: 11
Location: San Diego
nikhil_vaj
Offline
Registered User
Hello All,

I am trying to create a Python S60 extension for 3rd edition phones. I have created and signed the SIS file and it is installed without any trouble.

But when I try to import the DLL using imp.load_dynamic, I get the following error
SymbianError: [Errno -46] KErrPermissionDenied

I have used the Py_InitModule function call with correct function name and the import is successful in the SDK. It would seem that the Python shell does not have load/read rights to the separately installed DLL.

I also tried to set the UID of the DLL identical to the PyS60 package. This results in "Update Failed" during installation.

Must I recompile the entire PyS60 package with my extension? Can separate installation ever work?

I am using PyS60 1.3.12 on a S60 3.0 phone. Any pointers are welcome.

Thanks in advance.

Best Regards,
Nikhil
Reply With Quote

#2 Old Re: Python extension DLLs (PYDs) on 3rd Edition - 2006-11-02, 10:02

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi nikhil_vaj,

You must use unprotected UID for your module (0xA0000000-0xAFFFFFFF)

You must also set the capabilities in your .mmp file as:
Code:
CAPABILITY      NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment
LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

Tips and modules:
http://www.lfdm.net/thesis
Reply With Quote

#3 Old Re: Python extension DLLs (PYDs) on 3rd Edition - 2006-11-03, 01:46

Join Date: Feb 2004
Posts: 11
Location: San Diego
nikhil_vaj
Offline
Registered User
Thanks LFD!

I guess I am still not too comfortable with platform security

Thanks again!

-Nikhil
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 3rd Edition jplauril Python 82 2008-06-04 05:47
search dlls files in Series60 3rd edition... GeKI General Symbian C++ 5 2006-08-16 09:18
S60 2nd OR 3rd edition for new software development patil_ruturaj Symbian Tools & SDKs 1 2006-06-30 10:30
S60 2nd OR 3rd edition for new software development patil_ruturaj Mobile Java Tools & SDKs 3 2006-06-30 09:57
Python for Symbian OS 3rd edition biskero Python 3 2006-05-11 12:14

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