Loading

Paste #pl4tteuex

  1. [PYTHON] render docs
  2. [PARSE BASE LANG & EXTRA STRINGS] utils.py
  3. Traceback (most recent call last):
  4.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/utils.py", line 402, in __getitem__
  5.     return dict.__getitem__(self, key)
  6. KeyError: 'cargo'
  7.  
  8. During handling of the above exception, another exception occurred:
  9.  
  10. Traceback (most recent call last):
  11.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/template.py", line 170, in render
  12.     self._render(stream, econtext, rcontext)
  13.   File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 636, in render
  14.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/zpt/template.py", line 262, in include
  15.     self._render(*args, **kwargs)
  16.   File "page_with_sidebar_template_c384042458bc4b097c7af007eec21bd4.py", line 211, in render
  17.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/zpt/template.py", line 262, in include
  18.     self._render(*args, **kwargs)
  19.   File "main_template_ed61a4a28724807061a2d243e8342637.py", line 890, in render
  20.   File "main_template_ed61a4a28724807061a2d243e8342637.py", line 801, in render_main
  21.   File "page_with_sidebar_template_c384042458bc4b097c7af007eec21bd4.py", line 195, in __fill_body
  22.   File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 423, in __fill_body
  23.   File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 423, in <lambda>
  24.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/utils.py", line 404, in __getitem__
  25.     raise NameError(key)
  26. NameError: cargo
  27.  
  28. During handling of the above exception, another exception occurred:
  29.  
  30. Traceback (most recent call last):
  31.   File "src/render_docs.py", line 223, in <module>
  32.     main()
  33.   File "src/render_docs.py", line 216, in main
  34.     render_docs(html_docs, 'html')
  35.   File "src/render_docs.py", line 189, in render_docs
  36.     metadata=metadata, utils=utils, doc_helper=DocHelper(), doc_name=doc_name)
  37.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/template.py", line 123, in __call__
  38.     return self.render(**kwargs)
  39.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/zpt/template.py", line 258, in render
  40.     return super(PageTemplate, self).render(**vars)
  41.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/template.py", line 188, in render
  42.     raise_with_traceback(exc, tb)
  43.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/utils.py", line 73, in raise_with_traceback
  44.     raise exc
  45.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/template.py", line 170, in render
  46.     self._render(stream, econtext, rcontext)
  47.   File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 636, in render
  48.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/zpt/template.py", line 262, in include
  49.     self._render(*args, **kwargs)
  50.   File "page_with_sidebar_template_c384042458bc4b097c7af007eec21bd4.py", line 211, in render
  51.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/zpt/template.py", line 262, in include
  52.     self._render(*args, **kwargs)
  53.   File "main_template_ed61a4a28724807061a2d243e8342637.py", line 890, in render
  54.   File "main_template_ed61a4a28724807061a2d243e8342637.py", line 801, in render_main
  55.   File "page_with_sidebar_template_c384042458bc4b097c7af007eec21bd4.py", line 195, in __fill_body
  56.   File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 423, in __fill_body
  57.   File "economies_4d145e78f9c7c848c1858e0a220b782b.py", line 423, in <lambda>
  58.   File "/Users/andy/Documents/OTTD_graphics/bin3/lib/python3.3/site-packages/chameleon/utils.py", line 404, in __getitem__
  59.     raise NameError(key)
  60. NameError: cargo
  61.  
  62.  - Expression: "sorted(economy_schemas[economy].enabled_cargos, key=lambda cargo: doc_helper.get_cargo_name(cargo))"
  63.  - Filename:   ... graphics/FIRS/firs_build/src/docs_templates/economies.pt
  64.  - Location:   (line 21: col 42)
  65.  - Source:     ... sorted(economy_schemas[economy].enabled_cargos, key=lambda cargo: doc_helper.get_cargo_name(cargo)) ...
  66.                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  67.  - Arguments:  global_constants: <module global_constants at 0x10478b830>
  68.                registered_cargos: <list - at 0x104d97290>
  69.                repeat: {...} (0)
  70.                economy_schemas: {...} (5)
  71.                utils: <module utils at 0x104cc89e0>
  72.                repo_vars: {...} (2)
  73.                doc_helper: <DocHelper - at 0x104faf390>
  74.                registered_industries: <list - at 0x104f73560>
  75.                metadata: {...} (3)
  76.                page_with_sidebar_template: <PageTemplateFile - at 0x104da9c90>
  77.                doc_name: economies

Comments