Python 3.3线程。信号量不接受冗长的参数

2024-04-19 15:57:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我有个问题。 我想在Python3.3上使用celery,我已经安装了这个包,它工作得很好。 但是如果我运行它,在台球库里有个问题。第一个问题是他不知道库的子部分。现在我把它改为_winapi,现在它可以工作了。但现在我有另一个问题。在python3.3上线程.信号量不接受冗长的参数。在

[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

有人有办法解决这个问题吗???在


Tags: inpyselfinitlibpackageslinesite