You Are Here:

Community: Developer Discussion Boards

#1 Old Problem when loading c module on 6220 (KErrNotFound) - 2009-07-03, 10:47

Join Date: Mar 2004
Posts: 27
sliver33
Offline
Registered User
I wrote a pys60 app that works on N95 and various other phones but when I start it on the 6220 classic it crashes.

I traced the crash to the loading of an external library (.pyd):

File "c:\resource\myutil.py", line 5, in ?
_myutil= imp.load_dynamic('_myutil', 'c:\\sys\\bin\\_myutil.pyd')
SymbianError: [Errno -1] KErrNotFound

I am using pys60 1.4.5, but I also tried using 1.4.4 with the same effects.

Any ideas why it doesn't work on the 6220 classic?

thx
Stefan


Want to find out what is in your sis?
Go to www.whatisinmysis.com!

I've used it to debug the content, capabilities and signing of a sis :)
Reply With Quote

#2 Old Re: Problem when loading c module on 6220 (KErrNotFound) - 2009-07-03, 11:53

Join Date: Feb 2008
Posts: 2,546
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 sliver33 View Post
I wrote a pys60 app that works on N95 and various other phones but when I start it on the 6220 classic it crashes.

I traced the crash to the loading of an external library (.pyd):

File "c:\resource\myutil.py", line 5, in ?
_myutil= imp.load_dynamic('_myutil', 'c:\\sys\\bin\\_myutil.pyd')
SymbianError: [Errno -1] KErrNotFound

I am using pys60 1.4.5, but I also tried using 1.4.4 with the same effects.

Any ideas why it doesn't work on the 6220 classic?

thx
Stefan
hello silver33

i guess this is indeed strange, once i also faced this sort of situation and what i have done is uninstalled the runtime and shell and installed it again, that clicked for me.

Can't spot out the exact problem if you are using the same PyS60 realease.

Good Luck!!


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

Forum Nokia Python Wiki


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

#3 Old Re: Problem when loading c module on 6220 (KErrNotFound) - 2009-07-03, 11:57

Join Date: Feb 2008
Posts: 2,546
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 again

i forget one thing 6220 classic is a 3rd FP2 device and AFAIK 1.4.5 dont have esact binaries for that. May that be the reason.

Have you tested the script in anyother 3rd FP2 device??


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

Forum Nokia Python Wiki


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

#4 Old Re: Problem when loading c module on 6220 (KErrNotFound) - 2009-07-06, 10:41

Join Date: Mar 2004
Posts: 27
sliver33
Offline
Registered User
Thx for the response gaba88.

Unfortunately I don't have a different 3rd fp2 device at hand.

So it might only work with python 1.9 on 3rd fp2 device? I just tried to install version 1.9.3 but after that my app won't even start. I guess I also have to update my app sis (build with ensymble) to use the new package mechanism, right?


Want to find out what is in your sis?
Go to www.whatisinmysis.com!

I've used it to debug the content, capabilities and signing of a sis :)
Reply With Quote

#5 Old Re: Problem when loading c module on 6220 (KErrNotFound) - 2009-07-07, 05:45

Join Date: Feb 2008
Posts: 2,546
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 sliver33 View Post
So it might only work with python 1.9 on 3rd fp2 device? I just tried to install version 1.9.3 but after that my app won't even start. I guess I also have to update my app sis (build with ensymble) to use the new package mechanism, right?
yes you have to make the new sis using the application packager that comes with the PyS60 1.9.x releases.

Feel free to post any trouble you are facing with the application packager.

Regards
Gaba88


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

Forum Nokia Python Wiki


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

#6 Old Re: Problem when loading c module on 6220 (KErrNotFound) - 2009-07-07, 11:29

Join Date: Mar 2004
Posts: 27
sliver33
Offline
Registered User
Ok, I downloaded pys60 1.9.6 installed the sdk and the runtime on the phone. Jumped over some obstacles when building with the new ensymble and now I got to following problem. Everytime I want to load my pyd module I get the following error:

ImportError: dlopen: Load failed

on this line:

Code:
_bdriverutil = imp.load_dynamic('_bdriverutil','c:\\sys\\bin\\kf_bdriverutil.pyd')

Btw, Thanks gaba88, for all the help so far.


Want to find out what is in your sis?
Go to www.whatisinmysis.com!

I've used it to debug the content, capabilities and signing of a sis :)
Reply With Quote

#7 Old Re: Problem when loading c module on 6220 (KErrNotFound) - 2009-07-15, 18:08

Join Date: Jul 2009
Posts: 11
treta34
Offline
Registered User
Hi silver33,

Did you manage to solve your problem?
I think I have a similar one in a library built for 1.4.x which I cannot install in my 3rd FP2 mobile...

Many thanks in advance
Reply With Quote

#8 Old Re: Problem when loading c module on 6220 (KErrNotFound) - 2009-07-21, 10:57

Join Date: Mar 2004
Posts: 27
sliver33
Offline
Registered User
I actually did today

The problem was the library itself. I used the bluetooth api which changed for 3rd fp2 devices and the old version isn't available on newer devices.

I hope that helps.
Sliver


Want to find out what is in your sis?
Go to www.whatisinmysis.com!

I've used it to debug the content, capabilities and signing of a sis :)
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
racing condition problem with positioning module oyuky Python 4 2008-05-22 09:50
The problem about the audio module of the game engine vincent.lee Symbian Media (Graphics & Sounds) 2 2008-03-15 08:22
N-90 Mechanical Problem Turning camera Module ALTheo General Discussion 1 2006-04-06 19:41
Problem in loading image into WAP emulator through jsp gchuaay Browsing and Mark-ups 0 2002-05-15 13:21

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