2013-01-16 104 views
0

我使用Python 3.2,我想查看芹菜。 我使用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] [email protected] 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 

現在我猜線索alraedy在前幾行:

[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的檯球?

回答