e-hulp/HelpIM — Issue #149: Bot crashes on import error in helpim.questionnaire.views
Author: winfried
Created: 2012-02-16 09:46:19+00:00
State: open
Labels: bot, django, High priority

Stack trace:

Traceback (most recent call last):
File "/usr/local/bin/django-admin.py", line 5, in management.execute_from_command_line()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 429, in execute_from_command_line utility.execute()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 220, in execute output = self.handle(*args, **options)
File "/usr/local/lib/python2.6/dist-packages/helpim/rooms/management/commands/runbot.py", line 83, in handle try:
File "/usr/local/lib/python2.6/dist-packages/helpim/rooms/bot.py", line 927, in run if error:
File "/usr/lib/pymodules/python2.6/pyxmpp/streambase.py", line 598, in loop_iter return self._loop_iter(timeout)
File "/usr/lib/pymodules/python2.6/pyxmpp/streambase.py", line 619, in _loop_iter self._process()
File "/usr/lib/pymodules/python2.6/pyxmpp/streamtls.py", line 193, in _process StreamBase._process(self)
File "/usr/lib/pymodules/python2.6/pyxmpp/streambase.py", line 640, in _process self._read()
File "/usr/lib/pymodules/python2.6/pyxmpp/streamtls.py", line 188, in _read StreamBase._read(self)
File "/usr/lib/pymodules/python2.6/pyxmpp/streambase.py", line 664, in _read self._feed_reader(r)
File "/usr/lib/pymodules/python2.6/pyxmpp/streambase.py", line 680, in _feed_reader r=self._reader.feed(data)
File "/usr/lib/pymodules/python2.6/pyxmpp/xmlextra.py", line 549, in feed r = self.reader.feed(s)
File "/usr/lib/pymodules/python2.6/pyxmpp/xmlextra.py", line 57, in _stanza self.stanza(doc,node)
File "/usr/lib/pymodules/python2.6/pyxmpp/streambase.py", line 401, in stanza self._process_node(node)
File "/usr/lib/pymodules/python2.6/pyxmpp/stream.py", line 107, in _process_node StreamBase._process_node(self,xmlnode)
File "/usr/lib/pymodules/python2.6/pyxmpp/streambase.py", line 713, in _process_node self.process_stanza(stanza)
File "/usr/lib/pymodules/python2.6/pyxmpp/stanzaprocessor.py", line 279, in process_stanza if self.process_presence(stanza):
File "/usr/lib/pymodules/python2.6/pyxmpp/stanzaprocessor.py", line 230, in process_presence return self.__try_handlers(self._presence_handlers,typ,stanza)
File "/usr/lib/pymodules/python2.6/pyxmpp/stanzaprocessor.py", line 187, in __try_handlers response = handler(stanza)
File "/usr/lib/pymodules/python2.6/pyxmpp/jabber/muc.py", line 996, in __presence_available rs.process_available_presence(MucPresence(stanza))
File "/usr/lib/pymodules/python2.6/pyxmpp/jabber/muc.py", line 590, in process_available_presence self.handler.user_joined(user,stanza)
File "/usr/local/lib/python2.6/dist-packages/helpim/rooms/bot.py", line 743, in user_joined room = self.get_helpim_room()
File "/usr/local/lib/python2.6/dist-packages/django/utils/functional.py", line 55, in _curried return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py", line 887, in get_absolute_url return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/utils/functional.py", line 55, in _curried return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File "/usr/local/lib/python2.6/dist-packages/django/db/models/base.py", line 887, in get_absolute_url return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/db/models/__init__.py", line 35, in inner return reverse(bits[0], None, *bits[1:3])
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 391, in reverse *args, **kwargs)))
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 312, in reverse possibilities = self.reverse_dict.getlist(lookup_view)
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 229, in _get_reverse_dict self._populate()
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 220, in _populate lookups.appendlist(pattern.callback, (bits, p_pattern))
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 167, in _get_callback raise ViewDoesNotExist("Could not import %s. Error was: %s" % (mod_name, str(e)))
django.core.exceptions.ViewDoesNotExist: Could not import helpim.questionnaire.views.
Error was: cannot import name register_position_choices