Python 3.3 Threading.Semaphore不接受详细参数

时间:2013-04-05 09:32:15

标签: python python-3.x billiards

我有问题。 我想在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

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

0 个答案:

没有答案