【发布时间】:2012-01-26 07:26:53
【问题描述】:
我正在尝试使用与 RabbitMQ 和 Django 一起运行的 Celery。到目前为止,我的服务器上安装了 RabbitMQ 2.7,以及 python 2.7、Django 1.3、celery 2.4.6 和 django-celery 2.4.2
我按照这里的简单说明http://django-celery.readthedocs.org/en/latest/introduction.html
然后我尝试通过运行来启动 celery
$ python manage.py celeryd
但它给了我这个错误
Unrecoverable error: ImportError('This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
我做了一些研究,发现了这里的错误http://bugs.python.org/issue3770,据说它已经修复了,但我猜它不适用于 python 2.7。
另外,我的操作系统是 CentOS 版本 4.9 (Final)。我从源代码构建了python。
我启动了 python shell 并运行了:
import multiprocessing
没有错误,但是我跑了:
from multiprocessing import synchronize
我得到了错误(上面)。
感谢任何帮助。
【问题讨论】:
-
你的操作系统是什么?你是自己构建 python 还是从包管理器安装的?
import multiprocessing在普通的 python shell 中工作吗? -
感谢您的回复,我编辑了问题以包含您要求的信息。
标签: python django celery django-celery