Guest User

Untitled

a guest
Jul 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.57 KB | None | 0 0
  1. Started up flow development server on port 8000.
  2. Traceback (most recent call last):
  3. File "/Users/zar/Python/flow/utils/template/parser.py", line 160, in render_node
  4. return node(params)
  5. File "/Users/zar/Python/flow/utils/template/macros.py", line 110, in for_node
  6. return "".join(map(process_item, items))
  7. File "/Users/zar/Python/flow/utils/template/macros.py", line 107, in process_item
  8. name.set(params, item)
  9. File "/Users/zar/Python/flow/utils/template/parser.py", line 76, in set
  10. raise ValueError("Need more that {} values to unpack.".format(len(self.names)))
  11. ValueError: Need more that 2 values to unpack.
  12.  
  13. The above exception was the direct cause of the following exception:
  14.  
  15. Traceback (most recent call last):
  16. File "/Users/zar/Python/flow/controller/application.py", line 36, in __call__
  17. response = self.dispatch(request)
  18. File "/Users/zar/Python/flow/controller/application.py", line 29, in dispatch
  19. return self._handler(request)
  20. File "/Users/zar/Python/flow/controller/middleware/content.py", line 30, in wrapper
  21. return func(request, *args, **kwargs)
  22. File "/Users/zar/Python/flow/controller/middleware/content.py", line 44, in wrapper
  23. response = func(request, *args, **kwargs)
  24. File "/Users/zar/Python/flow/controller/middleware/content.py", line 72, in wrapper
  25. response = func(request, *args, **kwargs)
  26. File "/Users/zar/Python/flow/controller/middleware/content.py", line 88, in wrapper
  27. response = func(request, *args, **kwargs)
  28. File "/Users/zar/Python/flow/controller/middleware/content.py", line 108, in wrapper
  29. return func(request, *args, **kwargs)
  30. File "/Users/zar/Python/flow/controller/middleware/content.py", line 149, in wrapper
  31. response = func(request, *args, **kwargs)
  32. File "/Users/zar/Python/flow/controller/middleware/services.py", line 72, in wrapper
  33. return func(request, *args, **kwargs)
  34. File "/Users/zar/Python/flow/controller/middleware/services.py", line 84, in wrapper
  35. return func(request, *args, **kwargs)
  36. File "/Users/zar/Python/flow/controller/middleware/services.py", line 45, in wrapper
  37. return matched_handler(request, *args, **kwargs)
  38. File "/Users/zar/Python/flow/controller/dispatcher.py", line 16, in wrapper
  39. response = func(request, *args, **kwargs)
  40. File "/Users/zar/Python/flow/controller/dispatcher.py", line 16, in wrapper
  41. response = func(request, *args, **kwargs)
  42. File "/Users/zar/Projects/flow-example/example/__init__.py", line 13, in index
  43. return request.render("index.html")
  44. File "/Users/zar/Python/flow/controller/middleware/services.py", line 70, in render
  45. return loader.render(*template_names, **params)
  46. File "/Users/zar/Python/flow/utils/template/loader.py", line 48, in render
  47. return self.load(*template_names).render(**params)
  48. File "/Users/zar/Python/flow/utils/template/parser.py", line 114, in render
  49. return self._render_with_params(params)
  50. File "/Users/zar/Python/flow/utils/template/parser.py", line 110, in _render_with_params
  51. return "".join(node(params) for node in self._nodes)
  52. File "/Users/zar/Python/flow/utils/template/parser.py", line 110, in <genexpr>
  53. return "".join(node(params) for node in self._nodes)
  54. File "/Users/zar/Python/flow/utils/template/parser.py", line 160, in render_node
  55. return node(params)
  56. File "/Users/zar/Python/flow/utils/template/macros.py", line 39, in render_node
  57. return str(expression.eval(params))
  58. File "/Users/zar/Python/flow/utils/template/parser.py", line 93, in eval
  59. return eval(self.compiled_expression, {}, params)
  60. File "<string>", line 1, in <module>
  61. File "/Users/zar/Python/flow/utils/forms.py", line 7, in text_field
  62. return request.render(template, value=value, attributes=attributes)
  63. File "/Users/zar/Python/flow/controller/middleware/services.py", line 70, in render
  64. return loader.render(*template_names, **params)
  65. File "/Users/zar/Python/flow/utils/template/loader.py", line 48, in render
  66. return self.load(*template_names).render(**params)
  67. File "/Users/zar/Python/flow/utils/template/parser.py", line 114, in render
  68. return self._render_with_params(params)
  69. File "/Users/zar/Python/flow/utils/template/parser.py", line 110, in _render_with_params
  70. return "".join(node(params) for node in self._nodes)
  71. File "/Users/zar/Python/flow/utils/template/parser.py", line 110, in <genexpr>
  72. return "".join(node(params) for node in self._nodes)
  73. File "/Users/zar/Python/flow/utils/template/parser.py", line 164, in render_node
  74. raise TemplateRenderError(str(ex), name, lineno) from ex
  75. flow.utils.template.parser.TemplateRenderError: Need more that 2 values to unpack. ['forms/text_field.html' on line 1]
Add Comment
Please, Sign In to add comment