I know this questions sounds stupid but i'm not finding a solution.
In Billiard's docs all the imports look like:
from multiprocessing import Process, Queue
When I do the import like that, I'm not using billiard but the python in-built multiprocessing package, which doesn't work for me since I'm working with Celery.
if I do the import like this:
from billiard.context import Process
from billiard.queues import Queue
the I receive the following error when I instantiate a Queue:
TypeError: missing 1 required keyword-only argument: ctx
I'm using Python 2.7
This should work:
from billiard import Process, Queue
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.