0

我有一个 ec2 实例,我在其中部署了 django 1.5 和 solr 项目。当我运行以下命令:python manage.py rebuild_index最初构建索引时,我不断收到以下信息:

WARNING: This will irreparably remove EVERYTHING from your search index.
Your choices after this are to restore from backups or rebuild via the `rebuild_index` command.
Are you sure you wish to continue? [y/N] y

Removing all documents from your index because you said so.
All documents removed.
Indexing 561 <django.utils.functional.__proxy__ object at 0x2777550>.
TypeError: Element() keywords must be strings

我每次都收到上述错误。我能够毫无问题地在我的 Mac 上本地部署它。我还需要为 Ubuntu EC2 做些什么吗?

4

1 回答 1

1

如果您安装了 Ubuntu 提供的 python-lxml 并使用 pip 安装,您应该尝试删除它:

sudo dpkg --purge python-lxml
sudo pip install lxml

然后重新运行rebuild_index

于 2013-03-07T18:35:57.333 回答