0

我正在使用 Python 3.2,我想看看 celery。我使用 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?

4

1 回答 1

0

我想您使用的是 Windows,如果是这种情况,请查看此处

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

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

于 2013-01-19T08:37:19.163 回答