×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Where is cPickle?

    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
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: Where is cPickle?

    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
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: Where is cPickle?

    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
    Join Date
    Aug 2004
    Posts
    295

    Re: Where is cPickle?

    Care to share the solution?

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

    Re: Where is cPickle?

    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
  •  
×