芹菜 - 无法启动工人

时间:2013-01-16 08:16:19

标签: python celery

我正在使用Python 3.2,我想查看芹菜。 我使用pip来安装所有内容并且像在教程中一样创建了tasks.py: http://docs.celeryproject.org/en/latest/getting-started/first-steps-with-celery.html#installing-celery

但是如果我开始一个芹菜工作者,我会得到以下结果:

[2013-01-16 10:50:16,552: WARNING/MainProcess] C:\Python32\lib\site-packages\bil
liard\__init__.py:318: RuntimeWarning: force_execv is not supported as the billi
ard C extension is not installed
  warnings.warn(RuntimeWarning(W_NO_EXECV))
[2013-01-16 10:50:16,604: WARNING/MainProcess] celery@LNGVIEW201 ready.
[2013-01-16 10:50:16,651: ERROR/MainProcess] Unrecoverable error: error('char fo
rmat requires a bytes object of length 1',)
Traceback (most recent call last):
  File "C:\Python32\lib\site-packages\celery\worker\__init__.py", line 348, in s
tart
    component.start()
  File "C:\Python32\lib\site-packages\celery\worker\consumer.py", line 392, in s
tart
    self.reset_connection()
  File "C:\Python32\lib\site-packages\celery\worker\consumer.py", line 738, in r
eset_connection
    self.connection = self._open_connection()
  File "C:\Python32\lib\site-packages\celery\worker\consumer.py", line 804, in _
open_connection
    callback=self.maybe_shutdown,
 File "C:\Python32\lib\site-packages\kombu\connection.py", line 368, in ensure_
connection
    interval_start, interval_step, interval_max, callback)
  File "C:\Python32\lib\site-packages\kombu\utils\__init__.py", line 217, in ret
ry_over_time
    return fun(*args, **kwargs)
  File "C:\Python32\lib\site-packages\kombu\connection.py", line 241, in connect

    return self.connection
  File "C:\Python32\lib\site-packages\kombu\connection.py", line 731, in connect
ion
    self._connection = self._establish_connection()
  File "C:\Python32\lib\site-packages\kombu\connection.py", line 690, in _establ
ish_connection
    conn = self.transport.establish_connection()
  File "C:\Python32\lib\site-packages\kombu\transport\pyamqp.py", line 107, in e
stablish_connection
    heartbeat=conninfo.heartbeat)
  File "C:\Python32\lib\site-packages\amqp-1.0.6-py3.2.egg\amqp\connection.py",
line 155, in __init__
    self._x_start_ok(d, login_method, login_response, locale)
  File "C:\Python32\lib\site-packages\amqp-1.0.6-py3.2.egg\amqp\connection.py",
line 762, in _x_start_ok
    args.write_table(client_properties)
  File "C:\Python32\lib\site-packages\amqp-1.0.6-py3.2.egg\amqp\serialization.py
", line 317, in write_table
    table_data.write_table(v)
   File "C:\Python32\lib\site-packages\amqp-1.0.6-py3.2.egg\amqp\serialization.py
", line 296, in write_table
     table_data.write(pack('>cB', 't', int(v)))
struct.error: char format requires a bytes object of length 1
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
  File "C:\Python32\lib\site-packages\billiard\forking.py", line 528, in main
     self = load(from_parent)
 TypeError: Required argument 'handle' (pos 1) not found
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
 File "<string>", line 1, in <module>
 File "<string>", line 1, in <module>
 File "<string>", line 1, in <module>
 File "C:\Python32\lib\site-packages\billiard\forking.py", line 528, in main
 File "C:\Python32\lib\site-packages\billiard\forking.py", line 528, in main
  File "C:\Python32\lib\site-packages\billiard\forking.py", line 528, in main
   self = load(from_parent)
    self = load(from_parent)
  TypeError: Required argument 'handle' (pos 1) not found
    self = load(from_parent)
   TypeError: Required argument 'handle' (pos 1) not found
   TypeError: Required argument 'handle' (pos 1) not found
   Traceback (most recent call last):
 File "<string>", line 1, in <module>
 File "C:\Python32\lib\site-packages\billiard\forking.py", line 528, in main
   self = load(from_parent)
   TypeError: Required argument 'handle' (pos 1) not found
   Traceback (most recent call last):
 File "<string>", line 1, in <module>
 File "C:\Python32\lib\site-packages\billiard\forking.py", line 528, in main
    self = load(from_parent)
   TypeError: Required argument 'handle' (pos 1) not found
    Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python32\lib\site-packages\billiard\forking.py", line 528, in main
    self = load(from_parent)
TypeError: Required argument 'handle' (pos 1) not found
Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "C:\Python32\lib\site-packages\billiard\forking.py", line 528, in main
self = load(from_parent)
TypeError: Required argument 'handle' (pos 1) not found

现在我想在前几行中提到了线索:

[2013-01-16 10:50:16,552: WARNING/MainProcess] C:\Python32\lib\site-packages\bil
liard\__init__.py:318: RuntimeWarning: force_execv is not supported as the billi
ard C extension is not installed
  warnings.warn(RuntimeWarning(W_NO_EXECV))

有谁能告诉我如何为台球安装C-Extension?

1 个答案:

答案 0 :(得分:0)

我想您使用的是Windows,如果是这种情况请看一下

https://github.com/celery/celery/issues/1071

Windows上的安装存在一些问题,似乎还没有解决方案。