Main (#1) - Installing gives wrong versions (#11) - Message List

Installing gives wrong versions
 unsolved

Congrats with openPLM, looks very promising to me.

I tried to install it on my home server (ubuntu lucid lynx), but ended up with a newer version of django:

me@media:~$ sudo django-admin --version
1.3.1

I tried:

A to ignore this and move on but first stranded here:

# ./manage.py syncdb --all

or here (can't remember which of the two):

# ./manage.py migrate --all --fake

but solved that by installing a newer version of "south" (google was my friend there). But lateron I still stranded because 1) I couldn't find the "BROKER_PASSWORD" (no idea whether important or not). And also pointing my browser to localhost gave me the apache2 error message which suggest django doesn't do a thing.

B to find out how to downgrade the django version, but couldn't find the easy_install or apt-get line I needed to modify for this (I DID find out how to do this, but not which of the many installs I needed to alter, I tried almost all I think).

  • Message #17

    Thank you for your interest.

    ---

    But lateron I still stranded because 1) I couldn't find the "BROKER_PASSWORD" (no idea whether important or not).

    The "BROKER_PASSWORD" corresponds to the password (here is 'secret') you specify when you type the command hereafter :

    rabbitmqctl add_user openplm 'secret'
    

    ---

    And also pointing my browser to localhost gave me the apache2 error message which suggest django doesn't do a thing.

    We need more detail to solve this issue.

    ---

    B to find out how to downgrade the django version, but couldn't find the easy_install or apt-get line I needed to modify for this (I DID find out how to do this, but not which of the many installs I needed to alter, I tried almost all I think).

    I would recommand django version 1.2.5. You can get it typing :

    easy_install django==1.2.5
    
    • Message #18

      Thanks for your reply, I got a lot further.

      I did as told: noticed the BROKER_PASSWORD was there indeed, thanks.

      The updated installation instructions says:

       apt-get install 'south>=0.7'
      

      should this be something like: # apt-get install python-django-south>=0.7

      (which, FYI, doesn't exist in ubuntu 10.04 yet so I installed it by downloading it from the web).

      Secondly: the "make" command only says:

      make: *** No targets specified and no makefile found.  Stop.
      
      me@media:/var/django/openPLM/trunk/openPLM$ ls
      apache             media
      bin                non-official-GPLv3-french-translation.txt
      cad                office
      cae                plmapp
      check_modules.py   run_coverage.sh
      computer           runserver.sh
      datatests          settings.py
      docs               settings.pyc
      etc                settings_tests.py
      go.py              templates
      GPLv3-LICENSE.txt  translate.sh
      initial_data.json  urls.py
      __init__.py        xapian_backend.diff
      __init__.pyc       xapian_backend.py
      locale             xapian_backend.pyc
      manage.py
      

      I went back and forth a lot, so maybe something got misconfigured on my machine?

      • Message #19

        Hi,

        There is a mistake in the documentation, the right command is

        easy_install 'south>=0.7'
        

        The makefile only compiles some help texts into html. The following commands should do the same work:

        mkdir media/help/en
        mkdir media/help/es
        mkdir media/help/fr
        rst2html.py --no-doc-title --link-stylesheet --initial-header-level=3 help/en/search.rst media/help/en/search.html
        rst2html.py --no-doc-title --link-stylesheet --initial-header-level=3 help/es/search.rst media/help/es/search.html
        rst2html.py --no-doc-title --link-stylesheet --initial-header-level=3 help/fr/search.rst media/help/fr/search.html
        

        You may replace rst2html.py with rst2html (it is provided by python-docutils).

    • Message #20

      And also pointing my browser to localhost gave me the apache2 error message which suggest django doesn't do a thing.

      We need more detail to solve this issue.

      Ok after your last information I continued and retrieved this from err_log:

      [Wed Nov 30 20:08:58 2011] [error] Exception KeyError: KeyError(-1215883520,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
      [Wed Nov 30 20:08:58 2011] [error] Exception KeyError: KeyError(-1215883520,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
      [Wed Nov 30 20:08:58 2011] [notice] caught SIGTERM, shutting down
      [Wed Nov 30 20:08:59 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1] mod_wsgi (pid=7102): Exception occurred processing WSGI script '/var/django/openPLM/trunk/openPLM/apache/django.wsgi'.
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/wsgi.py", line 248, in __call__
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     response = self.get_response(request)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 141, in get_response
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return self.handle_uncaught_exception(request, resolver, sys.exc_info())
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 165, in handle_uncaught_exception
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return debug.technical_500_response(request, *exc_info)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 59, in technical_500_response
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     html = reporter.get_traceback_html()
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 141, in get_traceback_html
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return t.render(c)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 173, in render
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return self._render(context)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 167, in _render
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return self.nodelist.render(context)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 796, in render
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     bits.append(self.render_node(node, context))
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 72, in render_node
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     result = node.render(context)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 89, in render
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     output = self.filter_expression.resolve(context)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 579, in resolve
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     new_obj = func(obj, *arg_vals)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/defaultfilters.py", line 682, in date
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return format(value, arg)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 281, in format
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return df.format(format_string)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 187, in r
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return self.format('D, j M Y H:i:s O')
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/encoding.py", line 66, in force_unicode
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     s = unicode(s)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 206, in __unicode_cast
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return self.__func(*self.__args, **self.__kw)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 55, in ugettext
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return real_ugettext(message)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 55, in _curried
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 36, in delayed_loader
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return getattr(trans, real_name)(*args, **kwargs)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 276, in ugettext
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     return do_translate(message, 'ugettext')
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 266, in do_translate
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     _default = translation(settings.LANGUAGE_CODE)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 176, in translation
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     default_translation = _fetch(settings.LANGUAGE_CODE)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 159, in _fetch
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     app = import_module(appname)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     __import__(name)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 154, in <module>
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     handle_registrations()
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 151, in handle_registrations
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     search_sites_conf = importlib.import_module(settings.HAYSTACK_SITECONF)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     __import__(name)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_sites.py", line 13, in <module>
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     haystack.autodiscover()
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 121, in autodiscover
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     importlib.import_module("%s.search_indexes" % app)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     __import__(name)
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_indexes.py", line 11, in <module>
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1]     from haystack import indexes
      [Wed Nov 30 20:09:16 2011] [error] [client 127.0.0.1] TemplateSyntaxError: Caught ImportError while rendering: cannot import name indexes
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1] mod_wsgi (pid=7101): Exception occurred processing WSGI script '/var/django/openPLM/trunk/openPLM/apache/django.wsgi'.
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/wsgi.py", line 248, in __call__
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     response = self.get_response(request)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 141, in get_response
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return self.handle_uncaught_exception(request, resolver, sys.exc_info())
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 165, in handle_uncaught_exception
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return debug.technical_500_response(request, *exc_info)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 59, in technical_500_response
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     html = reporter.get_traceback_html()
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 141, in get_traceback_html
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return t.render(c)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 173, in render
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return self._render(context)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 167, in _render
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return self.nodelist.render(context)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 796, in render
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     bits.append(self.render_node(node, context))
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 72, in render_node
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     result = node.render(context)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 89, in render
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     output = self.filter_expression.resolve(context)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 579, in resolve
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     new_obj = func(obj, *arg_vals)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/defaultfilters.py", line 682, in date
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return format(value, arg)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 281, in format
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return df.format(format_string)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 187, in r
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return self.format('D, j M Y H:i:s O')
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/encoding.py", line 66, in force_unicode
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     s = unicode(s)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 206, in __unicode_cast
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return self.__func(*self.__args, **self.__kw)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 55, in ugettext
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return real_ugettext(message)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 55, in _curried
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 36, in delayed_loader
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return getattr(trans, real_name)(*args, **kwargs)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 276, in ugettext
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     return do_translate(message, 'ugettext')
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 266, in do_translate
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     _default = translation(settings.LANGUAGE_CODE)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 176, in translation
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     default_translation = _fetch(settings.LANGUAGE_CODE)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 159, in _fetch
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     app = import_module(appname)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     __import__(name)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 154, in <module>
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     handle_registrations()
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 151, in handle_registrations
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     search_sites_conf = importlib.import_module(settings.HAYSTACK_SITECONF)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     __import__(name)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_sites.py", line 13, in <module>
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     haystack.autodiscover()
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 121, in autodiscover
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     importlib.import_module("%s.search_indexes" % app)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     __import__(name)
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_indexes.py", line 11, in <module>
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1]     from haystack import indexes
      [Wed Nov 30 20:09:20 2011] [error] [client 127.0.0.1] TemplateSyntaxError: Caught ImportError while rendering: cannot import name indexes
      

      What i find on google about it, is either a "circular import sequence" or that the correct directories are not included into my httpd.conf.

      Or can this still be related to earlier install / uninstall instructions?

      • Message #21

        It may be a circular import sequence. I will try to reproduce this issue and fix it.

        You can also check that all paths in openPLM/apache/django.wsgi are valid.

      • Message #22

        I have created a ticket #54 to track this issue.

        • Message #23

          No rebuilding required after the patch right? (I saw bunch of succeeds after applying patch).

          Both directories were valid: '/var/django/openPLM/trunk/openPLM' and '/var/django/openPLM/trunk/'

          I still had error message:

          [Thu Dec 01 20:45:03 2011] [error] Exception KeyError: KeyError(-1216215296,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
          [Thu Dec 01 20:45:05 2011] [error] Exception KeyError: KeyError(-1216215296,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
          [Thu Dec 01 20:45:05 2011] [notice] caught SIGTERM, shutting down
          [Thu Dec 01 20:45:06 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1] mod_wsgi (pid=22300): Exception occurred processing WSGI script '/var/django/openPLM/trunk/openPLM/apache/django.wsgi'.
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/wsgi.py", line 248, in __call__
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     response = self.get_response(request)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 141, in get_response
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return self.handle_uncaught_exception(request, resolver, sys.exc_info())
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 165, in handle_uncaught_exception
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return debug.technical_500_response(request, *exc_info)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 59, in technical_500_response
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     html = reporter.get_traceback_html()
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 141, in get_traceback_html
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return t.render(c)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 173, in render
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return self._render(context)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 167, in _render
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return self.nodelist.render(context)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 796, in render
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     bits.append(self.render_node(node, context))
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 72, in render_node
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     result = node.render(context)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 89, in render
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     output = self.filter_expression.resolve(context)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 579, in resolve
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     new_obj = func(obj, *arg_vals)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/defaultfilters.py", line 682, in date
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return format(value, arg)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 281, in format
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return df.format(format_string)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 187, in r
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return self.format('D, j M Y H:i:s O')
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/encoding.py", line 66, in force_unicode
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     s = unicode(s)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 206, in __unicode_cast
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return self.__func(*self.__args, **self.__kw)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 55, in ugettext
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return real_ugettext(message)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 55, in _curried
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 36, in delayed_loader
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return getattr(trans, real_name)(*args, **kwargs)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 276, in ugettext
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     return do_translate(message, 'ugettext')
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 266, in do_translate
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     _default = translation(settings.LANGUAGE_CODE)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 176, in translation
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     default_translation = _fetch(settings.LANGUAGE_CODE)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 159, in _fetch
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     app = import_module(appname)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     __import__(name)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 154, in <module>
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     handle_registrations()
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 151, in handle_registrations
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     search_sites_conf = importlib.import_module(settings.HAYSTACK_SITECONF)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     __import__(name)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_sites.py", line 13, in <module>
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     haystack.autodiscover()
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 121, in autodiscover
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     importlib.import_module("%s.search_indexes" % app)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     __import__(name)
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_indexes.py", line 6, in <module>
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1]     from haystack import indexes
          [Thu Dec 01 20:45:14 2011] [error] [client 127.0.0.1] TemplateSyntaxError: Caught ImportError while rendering: cannot import name indexes
          
          • Message #24

            No rebuilding required after the patch right? (I saw bunch of succeeds after applying patch).

            Yes, you only need to restart apache and celeryd

            Can you try to replace the line 41 of plmapp/base_views.py

            from django.utils.translation import ugettext as _
            

            with

            from django.utils.translation import ugettext_lazy as _
            

            and see if it solves this issue.

            (cf.  https://github.com/toastdriven/django-haystack/issues/319 )

            • Message #27
              [Sat Dec 10 21:00:15 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
              [Sat Dec 10 21:06:05 2011] [error] Exception KeyError: KeyError(-1216162048,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
              [Sat Dec 10 21:06:05 2011] [error] Exception KeyError: KeyError(-1216162048,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
              [Sat Dec 10 21:06:05 2011] [notice] caught SIGTERM, shutting down
              [Sat Dec 10 21:06:06 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1] mod_wsgi (pid=2266): Exception occurred processing WSGI script '/var/django/openPLM/trunk/openPLM/apache/django.wsgi'.
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/wsgi.py", line 248, in __call__
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     response = self.get_response(request)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 141, in get_response
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return self.handle_uncaught_exception(request, resolver, sys.exc_info())
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 165, in handle_uncaught_exception
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return debug.technical_500_response(request, *exc_info)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 59, in technical_500_response
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     html = reporter.get_traceback_html()
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 141, in get_traceback_html
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return t.render(c)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 173, in render
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return self._render(context)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 167, in _render
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return self.nodelist.render(context)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 796, in render
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     bits.append(self.render_node(node, context))
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 72, in render_node
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     result = node.render(context)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 89, in render
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     output = self.filter_expression.resolve(context)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 579, in resolve
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     new_obj = func(obj, *arg_vals)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/defaultfilters.py", line 682, in date
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return format(value, arg)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 281, in format
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return df.format(format_string)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 187, in r
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return self.format('D, j M Y H:i:s O')
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/encoding.py", line 66, in force_unicode
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     s = unicode(s)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 206, in __unicode_cast
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return self.__func(*self.__args, **self.__kw)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 55, in ugettext
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return real_ugettext(message)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 55, in _curried
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 36, in delayed_loader
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return getattr(trans, real_name)(*args, **kwargs)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 276, in ugettext
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     return do_translate(message, 'ugettext')
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 266, in do_translate
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     _default = translation(settings.LANGUAGE_CODE)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 176, in translation
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     default_translation = _fetch(settings.LANGUAGE_CODE)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 159, in _fetch
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     app = import_module(appname)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     __import__(name)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 154, in <module>
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     handle_registrations()
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 151, in handle_registrations
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     search_sites_conf = importlib.import_module(settings.HAYSTACK_SITECONF)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     __import__(name)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_sites.py", line 13, in <module>
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     haystack.autodiscover()
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 121, in autodiscover
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     importlib.import_module("%s.search_indexes" % app)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     __import__(name)
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_indexes.py", line 6, in <module>
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1]     from haystack import indexes
              [Sat Dec 10 21:07:13 2011] [error] [client 127.0.0.1] TemplateSyntaxError: Caught ImportError while rendering: cannot import name indexes
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1] mod_wsgi (pid=2267): Exception occurred processing WSGI script '/var/django/openPLM/trunk/openPLM/apache/django.wsgi'.
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/wsgi.py", line 248, in __call__
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     response = self.get_response(request)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 141, in get_response
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return self.handle_uncaught_exception(request, resolver, sys.exc_info())
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 165, in handle_uncaught_exception
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return debug.technical_500_response(request, *exc_info)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 59, in technical_500_response
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     html = reporter.get_traceback_html()
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 141, in get_traceback_html
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return t.render(c)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 173, in render
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return self._render(context)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 167, in _render
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return self.nodelist.render(context)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 796, in render
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     bits.append(self.render_node(node, context))
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 72, in render_node
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     result = node.render(context)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 89, in render
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     output = self.filter_expression.resolve(context)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 579, in resolve
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     new_obj = func(obj, *arg_vals)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/defaultfilters.py", line 682, in date
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return format(value, arg)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 281, in format
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return df.format(format_string)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 187, in r
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return self.format('D, j M Y H:i:s O')
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/encoding.py", line 66, in force_unicode
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     s = unicode(s)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 206, in __unicode_cast
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return self.__func(*self.__args, **self.__kw)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 55, in ugettext
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return real_ugettext(message)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 55, in _curried
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 36, in delayed_loader
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return getattr(trans, real_name)(*args, **kwargs)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 276, in ugettext
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     return do_translate(message, 'ugettext')
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 266, in do_translate
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     _default = translation(settings.LANGUAGE_CODE)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 176, in translation
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     default_translation = _fetch(settings.LANGUAGE_CODE)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 159, in _fetch
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     app = import_module(appname)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     __import__(name)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 154, in <module>
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     handle_registrations()
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 151, in handle_registrations
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     search_sites_conf = importlib.import_module(settings.HAYSTACK_SITECONF)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     __import__(name)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_sites.py", line 13, in <module>
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     haystack.autodiscover()
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 121, in autodiscover
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     importlib.import_module("%s.search_indexes" % app)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     __import__(name)
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_indexes.py", line 6, in <module>
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1]     from haystack import indexes
              [Sat Dec 10 21:07:14 2011] [error] [client 127.0.0.1] TemplateSyntaxError: Caught ImportError while rendering: cannot import name indexes
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1] mod_wsgi (pid=2266): Exception occurred processing WSGI script '/var/django/openPLM/trunk/openPLM/apache/django.wsgi'.
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/wsgi.py", line 248, in __call__
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     response = self.get_response(request)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 141, in get_response
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return self.handle_uncaught_exception(request, resolver, sys.exc_info())
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 165, in handle_uncaught_exception
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return debug.technical_500_response(request, *exc_info)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 59, in technical_500_response
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     html = reporter.get_traceback_html()
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/views/debug.py", line 141, in get_traceback_html
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return t.render(c)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 173, in render
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return self._render(context)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 167, in _render
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return self.nodelist.render(context)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 796, in render
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     bits.append(self.render_node(node, context))
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 72, in render_node
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     result = node.render(context)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/debug.py", line 89, in render
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     output = self.filter_expression.resolve(context)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/__init__.py", line 579, in resolve
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     new_obj = func(obj, *arg_vals)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/template/defaultfilters.py", line 682, in date
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return format(value, arg)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 281, in format
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return df.format(format_string)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 187, in r
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return self.format('D, j M Y H:i:s O')
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/dateformat.py", line 30, in format
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     pieces.append(force_unicode(getattr(self, piece)()))
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/encoding.py", line 66, in force_unicode
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     s = unicode(s)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 206, in __unicode_cast
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return self.__func(*self.__args, **self.__kw)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 55, in ugettext
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return real_ugettext(message)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/functional.py", line 55, in _curried
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/__init__.py", line 36, in delayed_loader
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return getattr(trans, real_name)(*args, **kwargs)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 276, in ugettext
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     return do_translate(message, 'ugettext')
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 266, in do_translate
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     _default = translation(settings.LANGUAGE_CODE)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 176, in translation
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     default_translation = _fetch(settings.LANGUAGE_CODE)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/translation/trans_real.py", line 159, in _fetch
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     app = import_module(appname)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     __import__(name)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 154, in <module>
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     handle_registrations()
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 151, in handle_registrations
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     search_sites_conf = importlib.import_module(settings.HAYSTACK_SITECONF)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     __import__(name)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_sites.py", line 13, in <module>
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     haystack.autodiscover()
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/django_haystack-1.2.0-py2.6.egg/haystack/__init__.py", line 121, in autodiscover
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     importlib.import_module("%s.search_indexes" % app)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     __import__(name)
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]   File "/var/django/openPLM/trunk/openPLM/plmapp/search_indexes.py", line 6, in <module>
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1]     from haystack import indexes
              [Sat Dec 10 21:07:17 2011] [error] [client 127.0.0.1] TemplateSyntaxError: Caught ImportError while rendering: cannot import name indexes
              
        • Message #25

          I have created a ticket #54 to track this issue.

          I get this error when trying to run the patch:

          Hmm...patch unexpectedly ends in middle of line
            I can't seem to find a patch in there anywhere.
          patch: **** Only garbage was found in the patch input.
          

          Also, I did the change to line 41 of plmapp/base_views.py as suggested, but still the same errors as reported here...?

          Any new developments on this issue?

          Thank you.

          • Message #26

            Hi,

            I have disable auto discovery in haystack (I have set HAYSTACK_ENABLE_REGISTRATIONS to False and changed how search indexes are found). Can you update to the last revision and see if it works ?

            Thanks

            • Message #28

              ok after the update and "ct" - ing all : now I get django login ! yeeeh

              Which username/passwd does this require ? I lost track of all the combo's. Or do I need to create this one too?

              Thanks for your help!

              • Message #29

                You should have created two users:

                • a super user, you can create another one with the command ./manage.py createsuperuser and administrate the server (  http://server/admin/ ).

                • a company: a special user that can sponsor other users, its username should be in the settings file (COMPANY setting). You can create another one with the command ./manage.py createcompany.

                If openPLM complains about an user who is not a contributor, you can edit its profile through the admin interface (User profiles in Plmapp category)

Attachments

No attachments created.