Skip to content

Instantly share code, notes, and snippets.

@anibalpacheco
Created November 21, 2013 17:48
Show Gist options
  • Save anibalpacheco/7586227 to your computer and use it in GitHub Desktop.
Save anibalpacheco/7586227 to your computer and use it in GitHub Desktop.
AttributeError: 'module' object has no attribute 'ckanext-reclinepreview/main'
Error - <type 'exceptions.AttributeError'>: 'module' object has no attribute 'ckanext-reclinepreview/main'
URL: http://localhost/dataset/30fd207a-08cc-4241-87ae-70b27035a4b7/resource/ffcfa7ef-555b-42c1-8e9b-465f9f39bcc7/preview
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/weberror/errormiddleware.py', line 162 in __call__
app_iter = self.application(environ, sr_checker)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__
resp = self.call_func(req, *args, **self.kwargs)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
return self.func(req, *args, **kwargs)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/fanstatic/publisher.py', line 234 in __call__
return request.get_response(self.app)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
application, catch_exc_info=False)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
app_iter = application(self.environ, start_response)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__
resp = self.call_func(req, *args, **self.kwargs)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
return self.func(req, *args, **kwargs)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/fanstatic/injector.py', line 54 in __call__
response = request.get_response(self.app)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
application, catch_exc_info=False)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
app_iter = application(self.environ, start_response)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/beaker/middleware.py', line 73 in __call__
return self.app(environ, start_response)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/beaker/middleware.py', line 155 in __call__
return self.wrap_app(environ, session_start_response)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/routes/middleware.py', line 131 in __call__
response = self.app(environ, start_response)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/pylons/wsgiapp.py', line 125 in __call__
response = self.dispatch(controller, environ, start_response)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/pylons/wsgiapp.py', line 324 in dispatch
return controller(environ, start_response)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/ckan-2.2a-py2.7.egg/ckan/lib/base.py', line 346 in __call__
res = WSGIController.__call__(self, environ, start_response)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 221 in __call__
response = self._dispatch_call()
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 172 in _dispatch_call
response = self._inspect_call(func)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 107 in _inspect_call
result = self._perform_call(func, args)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 60 in _perform_call
return func(**args)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/ckan-2.2a-py2.7.egg/ckan/controllers/package.py', line 1415 in resource_datapreview
return render(preview_plugin.preview_template(context, data_dict))
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/ckan-2.2a-py2.7.egg/ckan/lib/base.py', line 224 in render
loader_class=loader_class)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/pylons/templating.py', line 249 in cached_template
return render_func()
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/ckan-2.2a-py2.7.egg/ckan/lib/base.py', line 161 in render_template
return render_jinja2(template_name, globs)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/ckan-2.2a-py2.7.egg/ckan/lib/base.py', line 104 in render_jinja2
return template.render(**extra_vars)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/jinja2/environment.py', line 894 in render
return self.environment.handle_exception(exc_info, True)
File '/home/ckan/venv/ckan2/src/ckan/ckanext/reclinepreview/theme/templates/recline.html', line 1 in top-level template code
{% extends "dataviewer/base.html" %}
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/ckan-2.2a-py2.7.egg/ckan/templates/dataviewer/base.html', line 1 in top-level template code
{% extends "base.html" %}
File '/home/ckan/venv/ckan2/src/ckan/../ckanext-agesic/ckanext/agesic/templates/base.html', line 1 in top-level template code
{% ckan_extends %}
File '/home/ckan/venv/ckan2/src/ckanext-agesic/ckanext/agesic/templates/base.html', line 1 in top-level template code
{% ckan_extends %}
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/ckan-2.2a-py2.7.egg/ckan/templates/base.html', line 102 in top-level template code
{%- block page %}{% endblock -%}
File '/home/ckan/venv/ckan2/src/ckan/ckanext/reclinepreview/theme/templates/recline.html', line 11 in block "page"
{% resource 'ckanext-reclinepreview/main' %}
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/ckan-2.2a-py2.7.egg/ckan/lib/jinja_extensions.py', line 315 in _call
h.include_resource(args[0], **kwargs)
File '/home/ckan/venv/ckan2/local/lib/python2.7/site-packages/ckan-2.2a-py2.7.egg/ckan/lib/helpers.py', line 1270 in include_resource
r = getattr(fanstatic_resources, resource)
AttributeError: 'module' object has no attribute 'ckanext-reclinepreview/main'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment