2013-02-28 123 views
0

我有一個ec2實例,我部署了一個django 1.5和solr項目。當我運行以下命令:python manage.py rebuild_index最初建立索引,我不斷收到如下:EC2上的solr索引問題

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做些什麼嗎?

回答

1

你應該嘗試刪除了Ubuntu提供的python-lxml的,如果你安裝了它,並安裝使用PIP代替:

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

然後重新運行rebuild_index

+0

這實際上就是我所做的。解決後忘記更新問題。 – KVISH 2013-03-07 19:42:23