Skip to content

Instantly share code, notes, and snippets.

@amercader
Created July 6, 2012 17:52
Show Gist options
  • Save amercader/3061612 to your computer and use it in GitHub Desktop.
Save amercader/3061612 to your computer and use it in GitHub Desktop.
2012-07-06 18:51:37,083 ERROR [ckan.model.modification] No object (name: tmpl_context or C) has been registered for this thread
Traceback (most recent call last):
File "/home/adria/dev/pyenvs/dgu/src/ckan/ckan/model/modification.py", line 76, in notify
observer.notify(entity, operation)
File "/home/adria/dev/pyenvs/dgu/src/ckanext-archiver/ckanext/archiver/plugin.py", line 30, in notify
self._create_archiver_task(entity)
File "/home/adria/dev/pyenvs/dgu/src/ckanext-archiver/ckanext/archiver/plugin.py", line 42, in _create_archiver_task
user = model.User.by_name(c.user)
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/paste/registry.py", line 137, in __getattr__
return getattr(self._current_obj(), attr)
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/paste/registry.py", line 194, in _current_obj
'thread' % self.____name__)
TypeError: No object (name: tmpl_context or C) has been registered for this thread
Traceback (most recent call last):
File "/home/adria/dev/pyenvs/dgu/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/paste/script/command.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/paste/script/command.py", line 123, in invoke
exit_code = runner.run(args)
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/paste/script/command.py", line 218, in run
result = self.command()
File "/home/adria/dev/pyenvs/dgu/src/ckanext-harvest/ckanext/harvest/commands/harvester.py", line 102, in command
consumer.wait()
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/carrot/messaging.py", line 439, in wait
it.next()
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/carrot/backends/pyamqplib.py", line 271, in consume
self.channel.wait()
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/amqplib/client_0_8/abstract_channel.py", line 97, in wait
return self.dispatch_method(method_sig, args, content)
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/amqplib/client_0_8/abstract_channel.py", line 117, in dispatch_method
return amqp_method(self, args, content)
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/amqplib/client_0_8/channel.py", line 2060, in _basic_deliver
func(msg)
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/carrot/messaging.py", line 288, in _receive_callback
self.receive(message.payload, message)
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/carrot/messaging.py", line 341, in receive
callback(message_data, message)
File "/home/adria/dev/pyenvs/dgu/src/ckanext-harvest/ckanext/harvest/queue.py", line 137, in fetch_callback
harvester.import_stage(obj)
File "/home/adria/dev/pyenvs/dgu/src/ckanext-inspire/ckanext/inspire/harvesters.py", line 143, in import_stage
log.error(text_traceback())
File "/home/adria/dev/pyenvs/dgu/src/ckanext-inspire/ckanext/inspire/harvesters.py", line 59, in text_traceback
cgitb.text(sys.exc_info()).split('the original traceback:')[1:]
File "/usr/lib/python2.7/cgitb.py", line 221, in text
vars = scanvars(reader, frame, locals)
File "/usr/lib/python2.7/cgitb.py", line 89, in scanvars
value = getattr(parent, token, __UNDEF__)
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/paste/registry.py", line 137, in __getattr__
return getattr(self._current_obj(), attr)
File "/home/adria/dev/pyenvs/dgu/local/lib/python2.7/site-packages/paste/registry.py", line 194, in _current_obj
'thread' % self.____name__)
TypeError: No object (name: tmpl_context or C) has been registered for this thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment