慕婉清9483671
2018-11-23 01:00
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/djcelery/management/commands/celery.py", line 21, in run_from_argv
['{0[0]} {0[1]}'.format(argv)] + argv[2:],
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/bin/celery.py", line 793, in execute_from_commandline
super(CeleryCommand, self).execute_from_commandline(argv)))
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/bin/base.py", line 311, in execute_from_commandline
return self.handle_argv(self.prog_name, argv[1:])
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/bin/celery.py", line 785, in handle_argv
return self.execute(command, argv)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/bin/celery.py", line 717, in execute
).run_from_argv(self.prog_name, argv[1:], command=argv[0])
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/bin/worker.py", line 179, in run_from_argv
return self(*args, **options)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/bin/base.py", line 274, in __call__
ret = self.run(*args, **kwargs)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/bin/worker.py", line 212, in run
state_db=self.node_format(state_db, hostname), **kwargs
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/worker/__init__.py", line 95, in __init__
self.app.loader.init_worker()
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/loaders/base.py", line 128, in init_worker
self.import_default_modules()
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/djcelery/loaders.py", line 137, in import_default_modules
super(DjangoLoader, self).import_default_modules()
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/loaders/base.py", line 121, in import_default_modules
tuple(maybe_list(self.app.conf.CELERY_INCLUDE))
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/loaders/base.py", line 118, in <listcomp>
self.import_task_module(m) for m in (
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/loaders/base.py", line 103, in import_task_module
return self.import_from_cwd(module)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/loaders/base.py", line 112, in import_from_cwd
package=package,
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/utils/imports.py", line 101, in import_from_cwd
return imp(module, package=package)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/site-packages/celery/loaders/base.py", line 106, in import_module
return importlib.import_module(module, package=package)
File "/home/python/.virtualenvs/django_py3/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 944, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'cource'
很明显,ImportError: No module named 'cource' 导入course模块的时候出错了,感觉是单词course写错了
Python 异步任务队列 Celery 使用
10849 学习 · 43 问题
相似问题