×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    10

    Smile How to install pyd lib to phone

    My pys60 version is pys60 2nd fp1, I hava a demo.pyd lib and I want to install to phone.
    I try the following code:
    import e32
    if e32.s60_version_info>=(2,0):
    import imp
    demo = imp.load_dynamic('demo', 'C:\\system\\libs\\demo.pyd')
    else:
    import demo
    del e32, imp

    When I run the code, there is always a error:SymbianError[Error -20] KErrCorrupt.
    Anyone tell me the error of the code or tell me any other methods?

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: How to install pyd lib to phone

    hi chycai
    there is something wrong in the code that u have written. moreover what are ur lib files.
    hav u installed ur lib files properly.
    thanks

  3. #3
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: How to install pyd lib to phone

    I haven't tried this yet, but the article looks useful and you may find the solution in it: http://wiki.forum.nokia.com/index.ph...tall_libraries

  4. #4
    Regular Contributor
    Join Date
    Dec 2007
    Location
    India
    Posts
    133

    Re: How to install pyd lib to phone

    Quote Originally Posted by chycai View Post
    My pys60 version is pys60 2nd fp1, I hava a demo.pyd lib and I want to install to phone.
    I try the following code:
    import e32
    if e32.s60_version_info>=(2,0):
    import imp
    demo = imp.load_dynamic('demo', 'C:\\system\\libs\\demo.pyd')
    else:
    import demo
    del e32, imp

    When I run the code, there is always a error:SymbianError[Error -20] KErrCorrupt.
    Anyone tell me the error of the code or tell me any other methods?
    Hi chycai,

    The default installation folders for the Python libs (.py, .pyc) are C:\\resource, E:\\resource and E:\\python\\lib. The last one has the advantage to be easily accessible via USB or bluetooth.

    The Python DLLs (.pyd) have to be in C:\\sys\\bin or E:\\sys\\bin.

    Hopefully helps
    Kandyfloss

    V 7.0642.0
    18-10-06
    RH-51
    Nokia 7610

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: How to install pyd lib to phone

    Quote Originally Posted by chycai View Post
    My pys60 version is pys60 2nd fp1 ...'C:\\system\\libs\\demo.pyd'
    Location should be correct for S60 2nd edition.

    Quote Originally Posted by chycai View Post
    SymbianError[Error -20] KErrCorrupt.
    However the error code looks really worrying... Is everything else working ok? The Symbian documentation link: http://www.symbian.com/developer/tec...rrorCodes.html
    KErrCorrupt

    The media is not formatted properly, or links between sections of it have been corrupted.
    Cheers,

    --jouni

  6. #6
    Registered User
    Join Date
    Feb 2008
    Posts
    10

    Re: How to install pyd lib to phone

    Hi,
    everyone, thank you all guys, now I want to know whether only I package the .pyd file as a .sis file and install it to phone, then I can use the lib .pyd file?

  7. #7
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: How to install pyd lib to phone

    Quote Originally Posted by chycai View Post
    Hi,
    everyone, thank you all guys, now I want to know whether only I package the .pyd file as a .sis file and install it to phone, then I can use the lib .pyd file?
    hi chycai
    better u install the lib files as .pyd instead of making them as sis files. moreover as fas as i guess we cant package .pyd files into a sis package.
    if u find anything abt that plz inform me abt that.
    thanks.

  8. #8
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: How to install pyd lib to phone

    Quote Originally Posted by gaba88 View Post
    hi chycai
    better u install the lib files as .pyd instead of making them as sis files. moreover as fas as i guess we cant package .pyd files into a sis package.
    if u find anything abt that plz inform me abt that.
    thanks.
    Hello ,

    I would clear these things for you :

    On the 2nd edition pyd files can be installed from inbox !
    You don't need put this file in a sis file (although you CAN !)

    On the 3rd edition pyd files MUST be installed from sis file (sisx format) ! Use ensymble (recommended !) or standard pkg file format.

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  9. #9
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: How to install pyd lib to phone

    hi cyke64
    thanks for clearing the concept.

Similar Threads

  1. help install pyd module
    By mindstien in forum Symbian
    Replies: 2
    Last Post: 2010-02-06, 16:21
  2. how to install MWS in mobile phone?
    By lb213_2000 in forum Mobile Web Server
    Replies: 2
    Last Post: 2007-11-09, 13:37
  3. how to install font in 6670 phone
    By amalvd in forum Symbian
    Replies: 2
    Last Post: 2006-10-28, 12:38
  4. Replies: 0
    Last Post: 2006-10-21, 16:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×