编程错误:关系“celery_taskmeta”不存在

2024-10-05 14:23:27 发布

您现在位置:Python中文网/ 问答频道 /正文

问题1

我正在运行本地服务器。它运行正常。我运行了pip install -r requirements.txt以确保在再次运行它之前我拥有所有的包。 现在我一直得到以下错误:

django.db.utils.ProgrammingError: relation "celery_taskmeta" does not exist

有一个related question on SO很旧,它建议运行manage.py migrate,但是运行它也会返回相同的错误。在

以下是我的requirements.txt的内容:

amqp==1.4.6
anyjson==0.3.3
apns-clerk==0.1.1
arrow==0.4.1
backports.ssl-match-hostname==3.4.0.2
billiard==3.3.0.19
bootstrap-admin==0.3.0
boto==2.25.0
celery==3.1.17
certifi==14.5.14
cffi==0.8.6
cryptography==0.7.1
Cython==0.19.1
dill==0.2.1
Django==1.6.1
django-appconf==0.6
django-bower==4.8.1
django-celery==3.1.0
django-compressor==1.3
django-debug-toolbar==1.2
django-extensions==1.4.9
django-gravatar2==1.1.3
django-picklefield==0.3.1
django-resized==0.2.4
django-ses==0.6.0
djangorestframework==2.3.8
enum34==1.0.4
gcm-client==0.1.4
Jinja2==2.7.3
joblib==0.8.0a3
kombu==3.0.24
line-profiler==1.0b3
MarkupSafe==0.23
mlpy==3.5.0
mock==1.0.1
nose==1.3.4
numpy==1.8.0
Pillow==2.7.0
psycopg2==2.4.6
pyasn1==0.1.7
pycparser==2.10
pyOpenSSL==0.14
pyparsing==2.0.3
python-dateutil==2.2
python-memcached==1.48
python-slugify==0.1.0
pytz==2014.10
pyzmq==14.4.1
raven==3.3.7
requests==2.5.1
scipy==0.13.3
six==1.8.0
South==0.7.6
sqlparse==0.1.11
tornado==4.0.2
Unidecode==0.4.17
yattag==1.0.7

我不知道该怎么解决这个问题。在

是老版本和新版本的Django和芹菜不兼容吗?我的最新安装已经两周了,那么在过去的两周里是否有一个版本可能会导致这个问题?还是完全无关?在

问题2

我是个初学者,所以我甚至不知道celery_taskmeta是什么,它的意义是什么。在


Tags: installpipdjango版本服务器txtdb错误
1条回答
网友
1楼 · 发布于 2024-10-05 14:23:27

通过运行以下命令解决了本例中的问题:

python manage.py syncdb all

This question指出django和celery的版本不匹配,但重新安装它们并没有改变任何东西。It seems这是旧版本中的问题(here too

其他消息来源指出,这可能会奏效:

python manage.py migrate djcelery

或者

python manage.py syncdbpython manage.py migrate

但是 all选项被证明是解决这个问题的关键。This是最有帮助的来源。在

我希望这对任何人都有用

相关问题 更多 >