Skip to content

Instantly share code, notes, and snippets.

@anibalpacheco
Created July 25, 2013 20:41
Show Gist options
  • Save anibalpacheco/6083563 to your computer and use it in GitHub Desktop.
Save anibalpacheco/6083563 to your computer and use it in GitHub Desktop.
TypeError: string indices must be integers
Error - <type 'exceptions.TypeError'>: string indices must be integers
URL: <<removed from this traceback>>
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/weberror/errormiddleware.py', line 162 in __call__
app_iter = self.application(environ, sr_checker)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/webob/dec.py', line 147 in __call__
resp = self.call_func(req, *args, **self.kwargs)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/webob/dec.py', line 208 in call_func
return self.func(req, *args, **kwargs)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/fanstatic/publisher.py', line 234 in __call__
return request.get_response(self.app)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/webob/request.py', line 1053 in get_response
application, catch_exc_info=False)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/webob/request.py', line 1022 in call_application
app_iter = application(self.environ, start_response)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/webob/dec.py', line 147 in __call__
resp = self.call_func(req, *args, **self.kwargs)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/webob/dec.py', line 208 in call_func
return self.func(req, *args, **kwargs)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/fanstatic/injector.py', line 54 in __call__
response = request.get_response(self.app)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/webob/request.py', line 1053 in get_response
application, catch_exc_info=False)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/webob/request.py', line 1022 in call_application
app_iter = application(self.environ, start_response)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/beaker/middleware.py', line 73 in __call__
return self.app(environ, start_response)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/beaker/middleware.py', line 155 in __call__
return self.wrap_app(environ, session_start_response)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/routes/middleware.py', line 131 in __call__
response = self.app(environ, start_response)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/pylons/wsgiapp.py', line 125 in __call__
response = self.dispatch(controller, environ, start_response)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/pylons/wsgiapp.py', line 324 in dispatch
return controller(environ, start_response)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/lib/base.py', line 320 in __call__
res = WSGIController.__call__(self, environ, start_response)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/pylons/controllers/core.py', line 221 in __call__
response = self._dispatch_call()
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/pylons/controllers/core.py', line 172 in _dispatch_call
response = self._inspect_call(func)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/pylons/controllers/core.py', line 107 in _inspect_call
result = self._perform_call(func, args)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/pylons/controllers/core.py', line 60 in _perform_call
return func(**args)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/controllers/package.py', line 1153 in resource_read
return render('package/resource_read.html')
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/lib/base.py', line 204 in render
loader_class=loader_class)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/pylons/templating.py', line 249 in cached_template
return render_func()
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/lib/base.py', line 141 in render_template
return render_jinja2(template_name, globs)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/lib/base.py', line 90 in render_jinja2
return template.render(**extra_vars)
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/jinja2/environment.py', line 894 in render
return self.environment.handle_exception(exc_info, True)
File '/usr/local/ckan/pyenv21/src/ckan/../ckanext-agesic/ckanext/agesic/templates/package/resource_read.html', line 3 in top-level template code
{% set res = c.resource %}
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/templates/package/base.html', line 3 in top-level template code
{% set pkg = c.pkg_dict %}
File '/usr/local/ckan/pyenv21/src/ckan/../ckanext-agesic/ckanext/agesic/templates/page.html', line 1 in top-level template code
{% ckan_extends %}
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/templates/page.html', line 1 in top-level template code
{% extends "base.html" %}
File '/usr/local/ckan/pyenv21/src/ckan/../ckanext-agesic/ckanext/agesic/templates/base.html', line 1 in top-level template code
{% ckan_extends %}
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/templates/base.html', line 102 in top-level template code
{%- block page %}{% endblock -%}
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/templates/page.html', line 15 in block "page"
{%- block content %}
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/templates/page.html', line 18 in block "content"
{% block main_content %}
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/templates/page.html', line 49 in block "main_content"
{% block pre_primary %}
File '/usr/local/ckan/pyenv21/src/ckan/../ckanext-agesic/ckanext/agesic/templates/package/resource_read.html', line 15 in block "pre_primary"
{% block resource %}
File '/usr/local/ckan/pyenv21/src/ckan/../ckanext-agesic/ckanext/agesic/templates/package/resource_read.html', line 66 in block "resource"
{% block data_preview %}
File '/usr/local/ckan/pyenv21/src/ckan/../ckanext-agesic/ckanext/agesic/templates/package/resource_read.html', line 67 in block "data_preview"
{{ h.resource_preview(c.resource, c.package.id) }}
File '/usr/local/ckan/pyenv21/lib/python2.6/site-packages/ckan-2.2a-py2.6.egg/ckan/lib/helpers.py', line 1524 in resource_preview
resource_id=resource['id'], id=package['id'], qualified=True)
TypeError: string indices must be integers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment