Closed sameermalik123 closed 7 years ago
Hmm it seems that the main function can't be serialized. Not sure why this is the case. Maybe this due to the virtual environment. But usually when we use the Pool
class, it uses queue.Queue
to pass tasks to the worker process. And everything that goes through the queue must also be pickable/serializable.
What could be done regarding this, i read all documentation regarding pool and proces but problem still persists .Thanks for ur support
Have you tried to use it on a normal machine yet instead of a virtual environment? I would try to isolate the problem and see where it works and where not...
I was using it in jupyter notebook ,i copied the above code ,and test run through commandline in default .py format and it now started to work ,but it is barely detecting anything.I don't think there was any problem due to virtual environment , i am still running it in virtual environment. But i am still unable to understand why it dont work in ipython notebook.
Hmm sorry I can't help you much here as well as I don't know how to replicate the error...
PicklingError Traceback (most recent call last)