[Openplm_user] Install server - 'rebuild_index' error
P. Joulaud
pjoulaud at linobject.com
Wed Nov 9 14:55:32 CET 2011
Hello,
I'm sorry but typing :
> $ python -c "from haystack import backend"
Gives :
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name backend
And I confirm, i did install Haystack :
> > 107 sudo easy_install haystack
Philippe
Le ven 04/11/11 17:05, "Pierre Cosquer" pcosquer at linobject.com a écrit:
> Le Fri, 04 Nov 2011 16:15:31 +0100,
> "P. Joulaud" <pjoula
> ud at linobject.com> a écrit :
> > Hello everybody,
> >
>
> Hi Philippe,
>
> > I'm installing a new openPLM server following
> instructions.> And I have an issue. The shell returns :
> > $ ./manage.py rebuild_index
> > Unknown command: 'rebuild_index'
> > Type 'manage.py help' for usage.
> >
> > I tried :
> > $ ./manage.py help
> > And I can't find rebuild_index nor anything with
> index in it.>
> > Do you have any idea how to solve this problem
> ?>
>
> Make sure django-haystack (version 1.2) is installed (the command
> rebuild_index comes from this application) and is in your python path.
>
> You can test if haystack is installed by running the following command.
> $ python -c "from haystack import backend"
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/usr/local/lib/python2.6/dist-packages/haystack/__init__.py",
> line 26, in <module> raise ImproperlyConfigured("You must define
> theHAYSTACK_SITECONF setting before using the search framework.")
> django.core.exceptions.ImproperlyConfigured: You must define the
> HAYSTACK_SITECONF setting before using the search framework.
>
> If it complains about HAYSTACK_SITECONF, haystack is installed.
>
> > ---
> > Philippe
> >
> > Here is my bash history :
> >
> > 4 sudo apt-get install postgresql
> > 5 sudo apt-get install swig build-essential
> pkg-config> build-essential gettext 6 easy_install
> odfpy> 7 sudo apt-get install
> python-setuptools> 9 sudo easy_install odfpy
> > 10 sudo apt-get install python-dev
> > 11 sudo easy_install imaging
> > 12 sudo apt-get install
> python-imaging> 13 sudo easy_install kjbuckets
> > 14 sudo apt-get install
> python-kjbuckets> 15 sudo easy_install pypdf
> > 16 sudo easy_install ipython
> > 17 sudo easy_install graphviz
> > 18 sudo apt-get install graphviz
> > 19 sudo apt-get install graphviz-dev
> > 20 sudo easy_install pygraphviz
> > 21 sudo easy_install django
> > 23 sudo easy_install south
> > 24 sudo easy_install psycopg2
> > 27 passwd postgres
> > 28 sudo passwd postgres
> > 29 mkdir /var/postgres
> > 30 sudo mkdir /var/postgres
> > 32 sudo chown postgres:postgres
> /var/postgres> 36 sudo locale-gen fr_FR.UTF-8
> > 37 su postgres
> > 39 sudo easy_install psycopg2
> > 41 sudo apt-get install libpq-dev
> > 42 sudo easy_install psycopg2
> > 49 sudo easy_install django
> > 61 sudo apt-get install subversion
> > 62 mkdir /var/demos
> > 63 sudo mkdir /var/demos
> > 64 sudo mkdir /var/demos/last
> > 65 sudo chown -R linobject:linobject
> /var/demos/> 66 cd /var/demos/last/
> > 67 svn co http://openplm.org/openPLM/trunk/openPLM>> 68 svn co http://openplm.org/openPLM/trunk/openPLM
> openPLM> 69 svn co http://openplm.org/svn/openPLM/trunk/openPLM>> 71 cd openPLM/
> > 74 vi settings.py
> > 96 ./manage.py syncdb --all
> > 105 sudo easy_install django-celery
> > 106 ./manage.py syncdb --all
> > 107 sudo easy_install haystack
> > 108 ./manage.py syncdb --all
> > 109 ./manage.py migrate --all --fake
> > 116 chown -R www-data:www-data files
> > 117 sudo chown -R www-data:www-data
> files> 119 sudo chown -R www-data:www-data
> media/thumbnails/> 120 sudo chown -R www-data:www-data
> media/navigate/> 136 sudo apt-get install python-xapian
> > 137 sudo apt-get install
> rabbitmq-server> 138 sudo easy_install django-haystack
> > 139 sudo apt-get install
> tracker-extract> 140 sudo easy_install tracker-extract
> > 145 sudo apt-get install tracker
> > 148 ./manage.py rebuild_index
> >
> >
>
> Regards,
> Pierre
> _______________________________________________
> Openplm_user mailing list
> O
> penplm_user at list.openplm.orghttp://list.openplm.org/mailman/listinfo/openplm_user
>
>
More information about the Openplm_user
mailing list