我今天尝试对我的项目进行 manage.py 清理,它返回“分段错误”没有更多信息。我尝试将详细模式设置为 3 (-v 3),但这并没有显示任何其他内容。
问题的根源是什么?在 Ubuntu 服务器上运行的 Django 1.3.1、PostgreSQL 8.3
UPD:这是跟踪的最后一点python -vv manage.py cleanup
:
import django.contrib.admin.models # precompiled from /usr/local/lib/python2.6/dist-
packages/django/contrib/admin/models.pyc
# trying /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/models.so
# trying /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/modelsmodule.so
# trying /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/models.py
# /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/models.pyc matches /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/models.py
import django.contrib.admindocs.models # precompiled from /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/models.pyc
# trying /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.so
# trying /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compilermodule.so
# trying /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py
# /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.pyc matches /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py
import django.db.models.sql.compiler # precompiled from /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.pyc
Segmentation fault