Closed GoogleCodeExporter closed 9 years ago
If you've never heard of multiprocessing module, here is the quick link:
http://docs.python.org/library/multiprocessing.html
Original comment by HaiZ...@gmail.com
on 4 May 2010 at 1:37
I think the underlying problem is with pickling. It's easy to reproduce:
>>> c=iniparse.INIConfig()
>>> c.x.y = 1
>>> pickle.dumps(c, -1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/pickle.py", line 1366, in dumps
Pickler(file, protocol).dump(obj)
File "/usr/lib/python2.6/pickle.py", line 224, in dump
self.save(obj)
File "/usr/lib/python2.6/pickle.py", line 306, in save
rv = reduce(self.proto)
TypeError: 'Undefined' object is not callable
Original comment by psobe...@gmail.com
on 5 May 2010 at 3:48
This issue was closed by revision r134.
Original comment by psobe...@gmail.com
on 5 May 2010 at 5:32
Thanks for quick response!
Although your pickle example works fine after applying the patch, mysend.py
still
reports the same error.
Original comment by HaiZ...@gmail.com
on 5 May 2010 at 7:17
I should have tried the original code before declaring victory. I can
reproduce the
error, but I get a slightly different traceback than the original:
Traceback (most recent call last):
File "/usr/lib/python2.6/multiprocessing/queues.py", line 242, in _feed
send(obj)
TypeError: 'NoneType' object is not callable
Original comment by psobe...@gmail.com
on 5 May 2010 at 5:18
I think the difference is because of you have python2.6 and I python2.5. Do you
have
any clues on how to deal with it?
Original comment by HaiZ...@gmail.com
on 6 May 2010 at 5:41
This issue was closed by revision r137.
Original comment by psobe...@gmail.com
on 7 May 2010 at 5:50
The victory has been accomplished!!! Many thanks!!
Original comment by HaiZ...@gmail.com
on 12 May 2010 at 3:43
Original issue reported on code.google.com by
HaiZ...@gmail.com
on 4 May 2010 at 1:28Attachments: