Skip to content

Instantly share code, notes, and snippets.

@MetalBeetle
Created February 6, 2011 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MetalBeetle/813350 to your computer and use it in GitHub Desktop.
Save MetalBeetle/813350 to your computer and use it in GitHub Desktop.
Started up flow development server on port 8000.
Traceback (most recent call last):
File "/Users/zar/Python/flow/utils/template/parser.py", line 160, in render_node
return node(params)
File "/Users/zar/Python/flow/utils/template/macros.py", line 110, in for_node
return "".join(map(process_item, items))
File "/Users/zar/Python/flow/utils/template/macros.py", line 107, in process_item
name.set(params, item)
File "/Users/zar/Python/flow/utils/template/parser.py", line 76, in set
raise ValueError("Need more that {} values to unpack.".format(len(self.names)))
ValueError: Need more that 2 values to unpack.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/zar/Python/flow/controller/application.py", line 36, in __call__
response = self.dispatch(request)
File "/Users/zar/Python/flow/controller/application.py", line 29, in dispatch
return self._handler(request)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 30, in wrapper
return func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 44, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 72, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 88, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 108, in wrapper
return func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 149, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/services.py", line 72, in wrapper
return func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/services.py", line 84, in wrapper
return func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/services.py", line 45, in wrapper
return matched_handler(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/dispatcher.py", line 16, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/dispatcher.py", line 16, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Projects/flow-example/example/__init__.py", line 13, in index
return request.render("index.html")
File "/Users/zar/Python/flow/controller/middleware/services.py", line 70, in render
return loader.render(*template_names, **params)
File "/Users/zar/Python/flow/utils/template/loader.py", line 48, in render
return self.load(*template_names).render(**params)
File "/Users/zar/Python/flow/utils/template/parser.py", line 114, in render
return self._render_with_params(params)
File "/Users/zar/Python/flow/utils/template/parser.py", line 110, in _render_with_params
return "".join(node(params) for node in self._nodes)
File "/Users/zar/Python/flow/utils/template/parser.py", line 110, in <genexpr>
return "".join(node(params) for node in self._nodes)
File "/Users/zar/Python/flow/utils/template/parser.py", line 160, in render_node
return node(params)
File "/Users/zar/Python/flow/utils/template/macros.py", line 39, in render_node
return str(expression.eval(params))
File "/Users/zar/Python/flow/utils/template/parser.py", line 93, in eval
return eval(self.compiled_expression, {}, params)
File "<string>", line 1, in <module>
File "/Users/zar/Python/flow/utils/forms.py", line 7, in text_field
return request.render(template, value=value, attributes=attributes)
File "/Users/zar/Python/flow/controller/middleware/services.py", line 70, in render
return loader.render(*template_names, **params)
File "/Users/zar/Python/flow/utils/template/loader.py", line 48, in render
return self.load(*template_names).render(**params)
File "/Users/zar/Python/flow/utils/template/parser.py", line 114, in render
return self._render_with_params(params)
File "/Users/zar/Python/flow/utils/template/parser.py", line 110, in _render_with_params
return "".join(node(params) for node in self._nodes)
File "/Users/zar/Python/flow/utils/template/parser.py", line 110, in <genexpr>
return "".join(node(params) for node in self._nodes)
File "/Users/zar/Python/flow/utils/template/parser.py", line 164, in render_node
raise TemplateRenderError(str(ex), name, lineno) from ex
flow.utils.template.parser.TemplateRenderError: Need more that 2 values to unpack. ['forms/text_field.html' on line 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment