簡體   English   中英

芹菜-無法啟動工人

[英]Celery - unable to start worker

我正在使用Python 3.2,並且想查看celery。 我使用PIP安裝一切,craeted一個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?

我想您正在使用Windows,如果是這種情況,請在這里查看

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

Windows上的安裝中存在一些問題,似乎還沒有解決方案。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM