First time here? Check out the FAQ!

Revision history  [back]

Error importing template source loader askbot.skins.loaders.Loader

I installed askbot using pip in my existing django projects, which uses django templates.Then I used migrations to add the askbot tables in the database. But after that when I run my local server following is the error message I get on my web browser, which I am unable to figure.

Environment:

Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 1.4
Python Version: 2.7.3
Installed Applications:
(....)
Installed Middleware:
(...)


Traceback:
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  101.                             request.path_info)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
  298.             for pattern in self.url_patterns:
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/core/urlresolvers.py" in url_patterns
  328.         patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module
  323.             self._urlconf_module = import_module(self.urlconf_name)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/Users/name/PycharmProjects/new/trail6/wizoku/universal_tutors/configs/common/../../../universal_tutors/configs/common/urls.py" in <module>
  32.         (r'%s' % settings.ASKBOT_URL, include('askbot.urls'))
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/conf/urls/__init__.py" in include
  24.         urlconf_module = import_module(urlconf_module)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/askbot/urls.py" in <module>
  10. from askbot import views
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/askbot/views/__init__.py" in <module>
  6. from askbot.views import commands
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/askbot/views/commands.py" in <module>
  42. from askbot.skins.loaders import render_into_skin_as_string
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/askbot/skins/loaders.py" in <module>
  8. from coffin.common import CoffinEnvironment
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/coffin/common.py" in <module>
  216. env = get_env()
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/coffin/common.py" in get_env
  199.     result = CoffinEnvironment(**kwargs)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/coffin/common.py" in __init__
  19.         all_ext = self._get_all_extensions()
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/coffin/common.py" in _get_all_extensions
  177.         for lib in self._get_templatelibs():
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/coffin/common.py" in _get_templatelibs
  102.                             l = import_library(module)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/template/base.py" in import_library
  1239.         mod = import_module(taglib_module)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/src/django-uni-form/uni_form/templatetags/uni_form_filters.py" in <module>
  8. from uni_form.helper import FormHelper
File "/Users/name/PycharmProjects/new/trail6/env_trail6/src/django-uni-form/uni_form/helper.py" in <module>
  4. from utils import render_field
File "/Users/name/PycharmProjects/new/trail6/env_trail6/src/django-uni-form/uni_form/utils.py" in <module>
  12. default_field_template = get_template("uni_form/field.html")
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/template/loader.py" in get_template
  145.     template, origin = find_template(template_name)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/template/loader.py" in find_template
  128.             loader = find_template_loader(loader_name)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/template/loader.py" in find_template_loader
  101.             raise ImproperlyConfigured('Error importing template source loader %s: "%s"' % (loader, e))

Exception Type: ImproperlyConfigured at /
Exception Value: Error importing template source loader askbot.skins.loaders.Loader: "'module' object has no attribute 'Loader'"

Error importing template source loader askbot.skins.loaders.Loader

I installed askbot using pip in my existing django projects, which uses django templates.Then I used migrations to add the askbot tables in the database. But after that when I run my local server following is the error message I get on my web browser, ran into this error, which I am unable to figure.

Environment:

Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 1.4
Python Version: 2.7.3
Installed Applications:
(....)
Installed Middleware:
(...)


Traceback:
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  101.                             request.path_info)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
  298.             for pattern in self.url_patterns:
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/core/urlresolvers.py" in url_patterns
  328.         patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module
  323.             self._urlconf_module = import_module(self.urlconf_name)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/Users/name/PycharmProjects/new/trail6/wizoku/universal_tutors/configs/common/../../../universal_tutors/configs/common/urls.py" in <module>
  32.         (r'%s' % settings.ASKBOT_URL, include('askbot.urls'))
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/conf/urls/__init__.py" in include
  24.         urlconf_module = import_module(urlconf_module)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/askbot/urls.py" in <module>
  10. from askbot import views
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/askbot/views/__init__.py" in <module>
  6. from askbot.views import commands
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/askbot/views/commands.py" in <module>
  42. from askbot.skins.loaders import render_into_skin_as_string
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/askbot/skins/loaders.py" in <module>
  8. from coffin.common import CoffinEnvironment
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/coffin/common.py" in <module>
  216. env = get_env()
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/coffin/common.py" in get_env
  199.     result = CoffinEnvironment(**kwargs)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/coffin/common.py" in __init__
  19.         all_ext = self._get_all_extensions()
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/coffin/common.py" in _get_all_extensions
  177.         for lib in self._get_templatelibs():
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/coffin/common.py" in _get_templatelibs
  102.                             l = import_library(module)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/template/base.py" in import_library
  1239.         mod = import_module(taglib_module)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/src/django-uni-form/uni_form/templatetags/uni_form_filters.py" in <module>
  8. from uni_form.helper import FormHelper
File "/Users/name/PycharmProjects/new/trail6/env_trail6/src/django-uni-form/uni_form/helper.py" in <module>
  4. from utils import render_field
File "/Users/name/PycharmProjects/new/trail6/env_trail6/src/django-uni-form/uni_form/utils.py" in <module>
  12. default_field_template = get_template("uni_form/field.html")
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/template/loader.py" in get_template
  145.     template, origin = find_template(template_name)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/template/loader.py" in find_template
  128.             loader = find_template_loader(loader_name)
File "/Users/name/PycharmProjects/new/trail6/env_trail6/lib/python2.7/site-packages/django/template/loader.py" in find_template_loader
  101.             raise ImproperlyConfigured('Error importing template source loader %s: "%s"' % (loader, e))

Exception Type: ImproperlyConfigured at /
Exception Value: Error importing template source loader askbot.skins.loaders.Loader: "'module' object has no attribute 'Loader'"