Threaded import hang in cPickle.dumps

Discussion in 'Python' started by Zac Burns, Nov 10, 2009.

  1. Zac Burns

    Zac Burns Guest

    Using python 2.6

    cPickle.dumps has an import which is causing my application to hang.
    (figured out by overriding builtin.__import__ with a print and seeing
    that this is the last line of code being run. I'm running
    cPickle.dumps in a thread, which leads me to believe that the first
    restriction here is the cause:
    http://docs.python.org/library/threading.html#importing-in-threaded-code

    What can I do about this?

    --
    Zachary Burns
    (407)590-4814
    Aim - Zac256FL
    Production Engineer (Digital Overlord)
    Zindagi Games
     
    Zac Burns, Nov 10, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jeff101
    Replies:
    3
    Views:
    3,333
    Mark Broadbent
    Jun 6, 2005
  2. jhon
    Replies:
    0
    Views:
    448
  3. srini

    Thread Dumps

    srini, May 21, 2004, in forum: Java
    Replies:
    1
    Views:
    431
  4. Russell King

    Analyzing java core dumps

    Russell King, Aug 20, 2004, in forum: Java
    Replies:
    0
    Views:
    2,805
    Russell King
    Aug 20, 2004
  5. Bharat
    Replies:
    0
    Views:
    534
    Bharat
    Oct 6, 2004
  6. Mani
    Replies:
    1
    Views:
    1,075
    John Harrison
    Oct 21, 2004
  7. Victor Kryukov
    Replies:
    8
    Views:
    698
    Gabriel Genellina
    May 17, 2007
  8. Kenneth Dombrowski

    cPickle segfault with nested dicts in threaded env

    Kenneth Dombrowski, Sep 8, 2010, in forum: Python
    Replies:
    3
    Views:
    357
    Kenneth Dombrowski
    Sep 9, 2010
Loading...