Is this a bug in multiprocessing or in my script?

erikcw erikwickstrom at
Wed Aug 5 04:37:32 CEST 2009


I'm trying to get multiprocessing to working consistently with my
script.  I keep getting random tracebacks with no helpful
information.  Sometimes it works, sometimes it doesn't.

Traceback (most recent call last):
  File "", line 144, in <module>
    print, range(10))
  File "/usr/lib/python2.6/multiprocessing/", line 148, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/usr/lib/python2.6/multiprocessing/", line 422, in get
    raise self._value
TypeError: expected string or buffer

It's not always the same traceback, but they are always short like
this.  I'm running Python 2.6.2 on Ubuntu 9.04.

Any idea how I can debug this?


More information about the Python-list mailing list