我有一个Django项目,利用Celery执行非同步任务。 我在视窗XP机器上做我的开发。
开始使用我的Django服务器(python管理)。 pyprserver 80
工作罚款,但试图开始Celeery Daemon(python管理)。 粉碎的开端
有以下错误:
sys.path, 包括C:development SpaceCorpsrc ,因此,我无法确定它为何不能找到这一模块。
C:developmentSpaceCorpssrc>python manage.py celeryd start
[2010-07-23 18:29:31,456: WARNING/MainProcess] ?[1;33mcelery@mike-laptop v2.0.1 is starting.?[0m
[2010-07-23 18:29:31,456: WARNING/MainProcess] ?[1;33mC:Program FilesPython26libsite-packagescelery-2.0.1-py2.6.eggceleryinceleryd.py:206: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in a production environment!
warnings.warn("Using settings.DEBUG leads to a memory leak, "?[0m
[2010-07-23 18:29:31,456: WARNING/MainProcess] ?[1;33mConfiguration ->
. broker -> amqp://guest@localhost:5672/
. queues ->
. celery -> exchange:celery (direct) binding:celery
. concurrency -> 2
. loader -> djcelery.loaders.DjangoLoader
. logfile -> [stderr]@WARNING
. events -> OFF
. beat -> OFF?[0m
[2010-07-23 18:29:31,706: WARNING/MainProcess] ?[1;33mcelery@mike-laptop has started.?[0m
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:Program FilesPython26libmultiprocessingforking.py", line 342, in main
self = load(from_parent)
File "C:Program FilesPython26libpickle.py", line 1370, in load
return Unpickler(file).load()
File "C:Program FilesPython26libpickle.py", line 858, in load
Traceback (most recent call last):
File "<string>", line 1, in <module>
dispatch[key](self)
File "C:Program FilesPython26libpickle.py", line 1090, in load_global
File "C:Program FilesPython26libmultiprocessingforking.py", line 342, in main
self = load(from_parent)
File "C:Program FilesPython26libpickle.py", line 1370, in load
klass = self.find_class(module, name)
File "C:Program FilesPython26libpickle.py", line 1124, in find_class
return Unpickler(file).load()
File "C:Program FilesPython26libpickle.py", line 858, in load
dispatch[key](self)
File "C:Program FilesPython26libpickle.py", line 1090, in load_global
__import__(module)
File "C:Program FilesPython26libsite-packagescelery-2.0.1-py2.6.eggceleryconcurrencyprocesses\__init__.py", line 7, in <module>
from celery import log
File "C:Program FilesPython26libsite-packagescelery-2.0.1-py2.6.eggcelerylog.py", line 8, in <module>
from celery import conf
File "C:Program FilesPython26libsite-packagescelery-2.0.1-py2.6.eggceleryconf.py", line 118, in <module>
ALWAYS_EAGER = _get("CELERY_ALWAYS_EAGER")
File "C:Program FilesPython26libsite-packagescelery-2.0.1-py2.6.eggceleryconf.py", line 109, in _get
value = getattr(settings, alias)
File "c:developmentdjangodjangoutilsfunctional.py", line 276, in __getattr__
self._setup()
File "c:developmentdjangodjangoconf\__init__.py", line 40, in _setup
self._wrapped = Settings(settings_module)
File "c:developmentdjangodjangoconf\__init__.py", line 75, in __init__
raise ImportError("Could not import settings %s (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings src.settings (Is it on sys.path? Does it have syntax errors?): No module named src.settings