Discussion Board

Results 1 to 5 of 5
  1. #1
    Super Contributor JOM's Avatar
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976
    I was trying to install figleaf (used for code coverage), but this problem got me really stopped:

    Code:
    import cPickle
    Output:
    ImportError: No Module named cPickle
    PyS60 1.4.2 sources contain file cPickle.c in core/Modules folder. It seemed logical that the library would be built-in, but now I don't know what to think. The build file core/core.mmp.in does NOT mention that file at all!

    Did I understand correctly that cPickle is not available in PyS60?

    --jouni

  2. #2
    Regular Contributor miohtama's Avatar
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376
    Quote Originally Posted by JOM View Post

    Did I understand correctly that cPickle is not available in PyS60?
    You did. Use Python pickle or repr.
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

  3. #3
    Regular Contributor miohtama's Avatar
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376
    Also, pickle does not work from non main threads since __import__() function will crash. You need to patch pickle.py a bit if you want to use it outside the main thread.
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

  4. #4
    Regular Contributor simo.salminen's Avatar
    Join Date
    Aug 2004
    Posts
    295
    Care to share the solution?

  5. #5
    Super Contributor JOM's Avatar
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976
    Quote Originally Posted by simo.salminen View Post
    Care to share the solution?
    Just wondering: is there any way to get/offer/put patches into next official PyS60 releases?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved