1

我有个问题。我想在 python 3.3 上使用 celery,我已经安装了这个数据包,它工作正常。但是如果我运行它,台球库中有问题。第一个问题是他不知道库_subproces。现在我已将其更改为 _winapi,现在它可以工作了。但现在我有另一个问题。在 Python 3.3 上 Threading.Semaphor 不接受详细参数。

[2013-04-05 11:21:22,468: ERROR/MainProcess] Unrecoverable error: TypeError('__i
nit__() takes from 1 to 2 positional arguments but 3 were given',)
Traceback (most recent call last):
  File "C:\Python33\lib\site-packages\celery\worker\__init__.py", line 205, in s
tart
    self.namespace.start(self)
  File "C:\Python33\lib\site-packages\celery\bootsteps.py", line 119, in start
    step.start(parent)
  File "C:\Python33\lib\site-packages\celery\bootsteps.py", line 352, in start
    return self.obj.start()
  File "C:\Python33\lib\site-packages\celery\concurrency\base.py", line 112, in
start
    self.on_start()
  File "C:\Python33\lib\site-packages\celery\concurrency\processes.py", line 81,
 in on_start
    **self.options)
  File "C:\Python33\lib\site-packages\billiard-2.7.3.23-py3.3.egg\billiard\pool.
py", line 834, in __init__
    self._putlock = semaphore or LaxBoundedSemaphore(self._processes)
  File "C:\Python33\lib\site-packages\billiard-2.7.3.23-py3.3.egg\billiard\pool.
py", line 136, in __init__
    _Semaphore.__init__(self, value, verbose)
TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given

有没有人有解决这个问题的想法???

4

0 回答 0