Can't run celery - billiard problem #1071

Closed
middlesphere opened this Issue Nov 16, 2012 · 6 comments

Comments

Projects
None yet
2 participants

I'm trying to run simple task from official doc's and celery can't start.
Default broker is RabbitMQ which is working properly.

Python version 3.2 (ActivePython 3.2.2.3) 32 bit

tasks.py

from celery import Celery

celery = Celery('tasks', broker='amqp://guest@localhost//')

@celery.task
def add(x, y):
return x + y

C:\Users\MAn>celery -A tasks worker --loglevel=info

-------------- celery@MAn-Mob v3.0.12 (Chiastic Slide)
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: amqp://guest@localhost:5672//

  • ** ---------- . app: main:0x360deb0
  • ** ---------- . concurrency: 4 (processes)
  • ** ---------- . events: OFF (enable -E to monitor this worker)
  • ** ----------
  • *** --- * --- [Queues]
    -- ******* ---- . celery: exchange:celery(direct) binding:celery
    --- ***** -----

[Tasks]
. tasks.add

[2012-11-16 15:52:09,377: WARNING/MainProcess] C:\Python32\lib\site-packages\billiard__init__.py:318: RuntimeWarning: force_execv is not supported as the billiard C extension is not installed

warnings.warn(RuntimeWarning(W_NO_EXECV))
[2012-11-16 15:52:09,467: WARNING/MainProcess] celery@MAn-Mob ready.
[2012-11-16 15:52:09,546: INFO/MainProcess] consumer: Connected to amqp://guest@127.0.0.1:5672//.
Traceback (most recent call last):
File "", line 1, in
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 "", line 1, in
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 "", line 1, in
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 "", line 1, in
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

Can't solve this problem.

billiard version is 2.7.3.18

OS - Windows 7 64bit

Sorry, is there dead community?

Owner

ask commented Nov 20, 2012

Windows is not well supported as I don't have access to a Windows installation. You can try installing the full billiard extension using the free Visual Studio edition. There are tutorial on the net on how to build Python C extensions, and after installing VS 2008 it's not a very complex task (basically just python setup.py install)

Thank you.

I'll try it and write response.

I've installed Visual Studio 2012, also I downloaded billiard.tar.gz and unpack it
Then I run "python setup.py install" but C extensions is not installed.
In docs there is no information about how to configure Visual Studio path and other environment variables to be able to compile C extensions. Also there is no instructions how to build *.c file during execution of "python setup.py install"

So, it would be nice to get some answer.
please.

Owner

ask commented Apr 11, 2013

I will be uploading a Windows binary of billiard later today, when that is up you can use easy_install billiard to install it (pip doesn't work)

@ask ask closed this Apr 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment