Open andrey-bublik opened 10 years ago
I get the same. Thanks for your analysis!
I tried class state(State): pass
in celery/events/state.py
but get "AttributeError: type object 'MonitorDelegate' has no attribute 'leaf'" from bin/celery.py
.
The import error stays if I change from celery.events.state import State as state
in celerymon/consumer.py
,
Issue #22 tries to fix this, seems the State
object is something different than state
.
(Sorry, didn’t check earlier, found this thread here via Google.)
Unfortunately, for me this problem was solved only after downgrading celery to version 3.0.
I'm seeing this with celery 3.1 when running any of the celery commands (beat, worker, etc). Also have django-celery installed, but am using the new API (without djcelery.setup_loader()).
Still running into this problem, one year later.
Same error here too.
Same error here, after update celery and django-celery to: celery==3.1.17 celery-with-redis==3.0 celerymon==1.0.3 django-celery==3.1.16
Same error here, as well.
Same error
Aparently, there's a pull request that solves this that's been waiting to be merged for quite some time.
Same here
$ pip freeze | grep celery
celery==3.1.17
celerymon==1.0.3
django-celery==3.1.16
Update import statement from "from celery.events.state import state" to "from celery.events.state import State as state" in the below files. /usr/local/lib/python2.7/dist-packages/celerymon/handlers/api.py /usr/local/lib/python2.7/dist-packages/celerymon/consumer.py
I got this when trying to run celerymon:
Problem is pretty simple:
Obviously, need to import State instead of state - or vice versa? Can anybody comment on, confirm such bug and help to solve?