×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    11

    Installing PyNcvLib - old certificate

    Hi!

    I have been trying to use pyNcvLib and I cannot even install it.

    The certificate at the Nokia site is outdated.

    The self-signed version provided in the forums is also not working - it installs the package in some folder which is not in my path (the folder doesn't even exist)

    I opened the original one from Nokia, changed the .pkg in order to install it at c:\resources\python25. I changed the path both for PyNcvLib and _PyNcvLib and self-signed the package (used siscontents)

    My scripts (or the example scripts) still cannot import the library... they just close the shell so I cannot even see what error appears... I tried to run PyNcvLib as a script and it complains that there is no such module called _PyNcvLib.

    How can this be, if I checked that the _PyNcvLib.pyd is in the path (I changed the PyNcvLib to point to c:\resources\python25)

    Furthermore, I cannot repeat the procedure for pycamera... It always complains about the certificate...

    Can anyone help me? I am quite new at PyS60 and I am having some difficulties trying to understand the environment


    Many thanks

    I am using python 1.9.5 on a nokia 6210 Navigator with firmware version = 04.13
    Last edited by treta34; 2009-07-13 at 16:59. Reason: adding more detail

  2. #2
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    65

    Re: Installing PyNcvLib - old certificate

    Change the device date back to one year and try installing.
    --NirpSis

    http://sites.google.com/site/nirpsis/
    http://nirpsis.blogspot.com/

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    11

    Re: Installing PyNcvLib - old certificate

    Nice Idea

    That solved my certificate problem... But I still cannot import the library...
    Any thoughts on that?
    Thanks

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

    Re: Installing PyNcvLib - old certificate

    Quote Originally Posted by treta34 View Post
    Nice Idea

    That solved my certificate problem... But I still cannot import the library...
    Any thoughts on that?
    Thanks
    hello treta34

    i have not used this Lib then also what sort of error you get when you import it???

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    11

    Re: Installing PyNcvLib - old certificate

    Hi gaba88,

    It is really an import error:
    "ImportError: No module named PyNcvLib".

    I think that the main problem is that the .pkg file inside the sis copies the files to a folder that is not in my path.
    I tried to change this for both the PyNcvLib.py and _PyNcvLib.pyd files(the only two files in the .sis). I also changed the path for _PyNcvLib.pyd in the PyNcvLib.py file...

    Now it can find the PyNcvLib... But when I try to run the example scripts... it just closes the shell.
    I cannot see what errors it gives!

    Is there any other way to change the path without interfering with the original code? Furthermore the original one, specified in the Nokia library, does not exist in my phone... And I do not know how to access it... (c:\\sys\\bin\\_PyNcvLib.pyd - the sys folder exist but I can only see it using the filebrowser.py provided as an example with python )

    I would really appreciate some guidance on this... I have been trying to install this for more than a week!!!

    Thanks

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

    Re: Installing PyNcvLib - old certificate

    hello treta34

    i am not sure if i got you, but what you can do is if you know some basics of carbide C++, then why don't you change the path specified in the pkg file and then recompile it for your device.

    regards
    Gaba88

  7. #7
    Registered User
    Join Date
    Jul 2009
    Posts
    11

    Re: Installing PyNcvLib - old certificate

    Hello gaba88,

    I am quite new to all this S60... I am also trying to understand carbide and all this framework.
    For example: Could you explain me what is the difference between changing the pkg file in carbide and recompiling and changing the directly the file on the sis package?

    What I did: I opened the .sis package using Siscontents, I changed the path in the .pkg file and in the import statement of the dynamic library _PyNcvLib.pyd and finally and created a new autosigned sis file.

    Would recompile the library make any difference?

    Thanks in advance

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

    Re: Installing PyNcvLib - old certificate

    hello treta34

    i am also not a expert in carbide c++ but AFAIK the sis you compile by changing the pkg file in the siscontents will be same, though i am not so positive about this.

    Regards
    Gaba88

  9. #9
    Registered User
    Join Date
    Jul 2009
    Posts
    11

    Re: Installing PyNcvLib - old certificate

    Well, I finally managed to compile the source code and the result is exactly the same...
    At least I learned a bit more of carbide doing this I hope this will help me to understand the problem!

    Thanks for your help

Similar Threads

  1. Trusted Application
    By damien_a in forum Mobile Java General
    Replies: 11
    Last Post: 2012-02-17, 20:49
  2. Installing SSL certificate on Symbian S40
    By alixwarnke in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2008-04-17, 08:04
  3. Nokia Tech Specialists, can you help me in installing User Certificate in Nokia 6230i
    By umeshbansal79 in forum Mobile Java Networking & Messaging & Security
    Replies: 17
    Last Post: 2008-01-09, 18:20
  4. Self-signed CA certificate
    By blackbuddha in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2006-07-25, 11:03
  5. certificate revoked when installing
    By Deidril in forum Symbian
    Replies: 2
    Last Post: 2006-07-18, 09:18

Posting Permissions

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