[ckan-dev] Error when adding ressource

Kirstein, Fabian fabian.kirstein at fokus.fraunhofer.de
Mon Mar 11 10:53:40 UTC 2013


Hi,

I'm using 2.0b and it is not possible to add a ressource to an existing dataset when IDataSetform is in use.
The same error "list index out of range" occurs like in a previous , still unsolved, error:  http://lists.okfn.org/pipermail/ckan-dev/2013-January/003852.html

Thanks.

Here the traceback:

URL: http://ubuntu:5000/dataset/new_resource/hallowelt6
File '/home/fki/oc/local/lib/python2.7/site-packages/weberror/evalexception.py', line 431 in respond
  app_iter = self.application(environ, detect_start_response)
File '/home/fki/oc/local/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__
  resp = self.call_func(req, *args, **self.kwargs)
File '/home/fki/oc/local/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
  return self.func(req, *args, **kwargs)
File '/home/fki/oc/local/lib/python2.7/site-packages/fanstatic/publisher.py', line 234 in __call__
  return request.get_response(self.app)
File '/home/fki/oc/local/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
  application, catch_exc_info=False)
File '/home/fki/oc/local/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
  app_iter = application(self.environ, start_response)
File '/home/fki/oc/local/lib/python2.7/site-packages/webob/dec.py', line 147 in __call__
  resp = self.call_func(req, *args, **self.kwargs)
File '/home/fki/oc/local/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
  return self.func(req, *args, **kwargs)
File '/home/fki/oc/local/lib/python2.7/site-packages/fanstatic/injector.py', line 54 in __call__
  response = request.get_response(self.app)
File '/home/fki/oc/local/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
  application, catch_exc_info=False)
File '/home/fki/oc/local/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
  app_iter = application(self.environ, start_response)
File '/home/fki/oc/local/lib/python2.7/site-packages/beaker/middleware.py', line 73 in __call__
  return self.app(environ, start_response)
File '/home/fki/oc/local/lib/python2.7/site-packages/beaker/middleware.py', line 155 in __call__
  return self.wrap_app(environ, session_start_response)
File '/home/fki/oc/local/lib/python2.7/site-packages/routes/middleware.py', line 131 in __call__
  response = self.app(environ, start_response)
File '/home/fki/oc/local/lib/python2.7/site-packages/pylons/wsgiapp.py', line 125 in __call__
  response = self.dispatch(controller, environ, start_response)
File '/home/fki/oc/local/lib/python2.7/site-packages/pylons/wsgiapp.py', line 324 in dispatch
  return controller(environ, start_response)
File '/home/fki/oc/src/ckan/ckan/lib/base.py', line 288 in __call__
  res = WSGIController.__call__(self, environ, start_response)
File '/home/fki/oc/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 221 in __call__
  response = self._dispatch_call()
File '/home/fki/oc/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 172 in _dispatch_call
  response = self._inspect_call(func)
File '/home/fki/oc/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 107 in _inspect_call
  result = self._perform_call(func, args)
File '/home/fki/oc/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 60 in _perform_call
  return func(**args)
File '/home/fki/oc/src/ckan/ckan/controllers/package.py', line 628 in new_resource
  get_action('resource_create')(context, data)
File '/home/fki/oc/src/ckan/ckan/logic/__init__.py', line 324 in wrapped
  return _action(context, data_dict, **kw)
File '/home/fki/oc/src/ckan/ckan/logic/action/create.py', line 251 in resource_create
  pkg_dict = _get_action('package_update')(context, pkg_dict)
File '/home/fki/oc/src/ckan/ckan/logic/__init__.py', line 324 in wrapped
  return _action(context, data_dict, **kw)
File '/home/fki/oc/src/ckan/ckan/logic/action/update.py', line 251 in package_update
  data, errors = _validate(data_dict, schema, context)
File '/home/fki/oc/src/ckan/ckan/lib/navl/dictization_functions.py', line 228 in validate
  converted_data, errors = _validate(flattened, schema, context)
File '/home/fki/oc/src/ckan/ckan/lib/navl/dictization_functions.py', line 289 in _validate
  convert(converter, key, converted_data, errors, context)
File '/home/fki/oc/src/ckan/ckan/lib/navl/dictization_functions.py', line 186 in convert
  converter(key, converted_data, errors, context)
File '/home/fki/oc/src/ckan/ckan/logic/validators.py', line 306 in duplicate_extras_key
  unflattened = unflatten(data)
File '/home/fki/oc/src/ckan/ckan/lib/navl/dictization_functions.py', line 393 in unflatten
  current_pos = current_pos[key]
IndexError: list index out of range
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130311/cf908898/attachment.html>


More information about the ckan-dev mailing list