Skip to content

Instantly share code, notes, and snippets.

@Kronuz
Created May 11, 2012 20:37
Show Gist options
  • Save Kronuz/2662264 to your computer and use it in GitHub Desktop.
Save Kronuz/2662264 to your computer and use it in GitHub Desktop.
ImageKit's ImageSpecFieldFile error
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "../apps/sections/views.py", line 48, in sectionpage
response = http.HttpResponse(t.render(c))
File "/Library/Python/2.7/site-packages/django/template/base.py", line 140, in render
return self._render(context)
File "/Library/Python/2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/Library/Python/2.7/site-packages/django/template/base.py", line 823, in render
bit = self.render_node(node, context)
File "/Library/Python/2.7/site-packages/django/template/debug.py", line 74, in render_node
return node.render(context)
File "/Library/Python/2.7/site-packages/django/template/loader_tags.py", line 125, in render
return compiled_parent._render(context)
File "/Library/Python/2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/Library/Python/2.7/site-packages/django/template/base.py", line 823, in render
bit = self.render_node(node, context)
File "/Library/Python/2.7/site-packages/django/template/debug.py", line 74, in render_node
return node.render(context)
File "/Library/Python/2.7/site-packages/django/template/loader_tags.py", line 125, in render
return compiled_parent._render(context)
File "/Library/Python/2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/Library/Python/2.7/site-packages/django/template/base.py", line 823, in render
bit = self.render_node(node, context)
File "/Library/Python/2.7/site-packages/django/template/debug.py", line 74, in render_node
return node.render(context)
File "/Library/Python/2.7/site-packages/django/template/loader_tags.py", line 125, in render
return compiled_parent._render(context)
File "/Library/Python/2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/Library/Python/2.7/site-packages/django/template/base.py", line 823, in render
bit = self.render_node(node, context)
File "/Library/Python/2.7/site-packages/django/template/debug.py", line 74, in render_node
return node.render(context)
File "../apps-ext/djblets/util/decorators.py", line 119, in render
return self.tag_func(context, *args)
File "../apps/widget/templatetags/widgets_tags.py", line 45, in load_widgets
render_widgets(request, context, slot)
File "../apps/widget/utils.py", line 61, in render_widgets
rendered_widgets.append(widget.render(request, context))
File "../apps/widget/models.py", line 198, in render
self._rendered = self._render(request, context) or ''
File "../apps/relationships/models.py", line 991, in _render
'friends': relationships.get('all_relations', [])[:16]
File "/Library/Python/2.7/site-packages/django/db/models/query.py", line 193, in __getitem__
qs = self._clone()
File "/Library/Python/2.7/site-packages/django/db/models/query.py", line 860, in _clone
query = self.query.clone()
File "/Library/Python/2.7/site-packages/django/db/models/sql/query.py", line 259, in clone
obj.where = copy.deepcopy(self.where, memo=memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 174, in deepcopy
y = copier(memo)
File "/Library/Python/2.7/site-packages/django/utils/tree.py", line 61, in __deepcopy__
obj.children = copy.deepcopy(self.children, memodict)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 230, in _deepcopy_list
y.append(deepcopy(a, memo))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 174, in deepcopy
y = copier(memo)
File "/Library/Python/2.7/site-packages/django/utils/tree.py", line 61, in __deepcopy__
obj.children = copy.deepcopy(self.children, memodict)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 230, in _deepcopy_list
y.append(deepcopy(a, memo))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 174, in deepcopy
y = copier(memo)
File "/Library/Python/2.7/site-packages/django/utils/tree.py", line 61, in __deepcopy__
obj.children = copy.deepcopy(self.children, memodict)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 230, in _deepcopy_list
y.append(deepcopy(a, memo))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 237, in _deepcopy_tuple
y.append(deepcopy(a, memo))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 230, in _deepcopy_list
y.append(deepcopy(a, memo))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 182, in deepcopy
rv = reductor(2)
File "/Library/Python/2.7/site-packages/django/db/models/fields/files.py", line 134, in __getstate__
return {'name': self.name, 'closed': False, '_committed': True, '_file': None}
File "../apps-ext/imagekit/models/fields/files.py", line 114, in name
filename = self.source_file.name
File "../apps-ext/imagekit/models/fields/files.py", line 18, in source_file
field_name = getattr(self.field, 'image_field', None)
AttributeError: 'ImageSpecFieldFile' object has no attribute 'field'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment