You Are Here:

Community: Developer Discussion Boards

#1 Old Problem Importing Module - 2008-08-19, 09:12

Join Date: Nov 2007
Posts: 23
sachingupta107
Offline
Registered User
Hello All,

While trying to run python script using Berkley DB on device I am facing following Issue:

ImportError: Permission denied (error -46). Possible cause: Check that bdb.pyd is compiled to have at lease same capabilities as this python interpreter process.

This app is a python library:

bdb.pyd, basically it is a wrapper written on top of openC port of berkeley DB for python.

I Install bdb.pyd in c:\sys\bin on device using a sis file.

Then I run python shell and type 'import bdb' following which error pops up (as above).

---

To rectify I did following:

1) Try to sign bdb.pyd pacaged as sis file using ensymble and Python Script Shell using symbian online signed, with all permissions.
After getting both of them signed with same set of capabilities, it stil throws the same error

2) Try to self sign python and bdb.pyd , same error.

3) Try to self sign python and online sign bdb.pyd , still throws same error.

As of now I am not clear how we can solve this issue.

bdb.pyd file uses UID: 0xEDFD7A0C
it links against: LIBRARY python_appui.lib python222.lib

---
Please help
Reply With Quote

#2 Old Re: Problem Importing Module - 2008-08-19, 09:22

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
hi sachingupta107
why dont you put the pyd file in the directory e://python//lib. and then check it out.


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

Forum Nokia Python Wiki


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

#3 Old Re: Problem Importing Module - 2008-08-19, 09:47

Join Date: Nov 2007
Posts: 23
sachingupta107
Offline
Registered User
My device does not have a memory card, Though looking at the error it seems python can find the module but there is some capabilities mismatch.
Reply With Quote

#4 Old Re: Problem Importing Module - 2008-08-19, 09:56

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 sachingupta107 View Post
My device does not have a memory card, Though looking at the error it seems python can find the module but there is some capabilities mismatch.
hi again
when you converted the pyd into sis using ensymble did you mentioned your capabilities in the ensymble.


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

Forum Nokia Python Wiki


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

#5 Old Re: Problem Importing Module - 2008-08-19, 10:00

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
sorry i forgot to give a thread refrence look at this thread post no22 for more info.

Hope it helps


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

Forum Nokia Python Wiki


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

#6 Old Re: Problem Importing Module - 2008-08-19, 10:40

Join Date: Nov 2007
Posts: 23
sachingupta107
Offline
Registered User
Quote:
Originally Posted by gaba88 View Post
hi again
when you converted the pyd into sis using ensymble did you mentioned your capabilities in the ensymble.
Thanks a lot gaba88 that was the issue, Problem Solved !
Reply With Quote

#7 Old Re: Problem Importing Module - 2008-08-19, 11:00

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 sachingupta107 View Post
Thanks a lot gaba88 that was the issue, Problem Solved !
great that your problem got solved.


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

Forum Nokia Python Wiki


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

#8 Old Re: Problem Importing Module - 2008-08-19, 11:57

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by sachingupta107 View Post
Hello All,

While trying to run python script using Berkley DB on device I am facing following Issue:


This app is a python library:

bdb.pyd, basically it is a wrapper written on top of openC port of berkeley DB for python.
Hello Sachingupta

Is this python wrapper and the openC port of berkeley DB available somewhere ? Any links ?

BR
Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
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
Problem Signing Misoalarm Module rishabhgupta Python 8 2008-06-03 17:29
Problem with importing project nuker85 General Symbian C++ 4 2008-05-24 22:03
racing condition problem with positioning module oyuky Python 4 2008-05-22 09:50
problem with N95 and positioning module pablo_sg Python 3 2007-12-14 18:12
S60 examples importing problem chirag_cel Symbian Tools & SDKs 1 2006-11-08 06:32

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