apache / incubator-heron

Apache Heron (Incubating) is a realtime, distributed, fault-tolerant stream processing engine from Twitter
https://heron.apache.org/
Apache License 2.0
3.65k stars 598 forks source link

Heron UI fails to run with Jinja2 error #3776

Closed nicknezis closed 2 years ago

nicknezis commented 2 years ago

Describe the bug Built a new Docker image and tried to install the Helm chart (Ubuntu 20.04 OS flavor). The Heron UI failed to start with the following output:

Traceback (most recent call last):
  File "/root/.pex/unzipped_pexes/8441fa64fbac3368d66a56198197a0e21b924c36/.bootstrap/pex/pex.py", line 476, in execute
    exit_value = self._wrap_coverage(self._wrap_profiling, self._execute)
  File "/root/.pex/unzipped_pexes/8441fa64fbac3368d66a56198197a0e21b924c36/.bootstrap/pex/pex.py", line 401, in _wrap_coverage
    return runner(*args)
  File "/root/.pex/unzipped_pexes/8441fa64fbac3368d66a56198197a0e21b924c36/.bootstrap/pex/pex.py", line 432, in _wrap_profiling
    return runner(*args)
  File "/root/.pex/unzipped_pexes/8441fa64fbac3368d66a56198197a0e21b924c36/.bootstrap/pex/pex.py", line 532, in _execute
    return self.execute_entry(self._pex_info.entry_point)
  File "/root/.pex/unzipped_pexes/8441fa64fbac3368d66a56198197a0e21b924c36/.bootstrap/pex/pex.py", line 679, in execute_entry
    return self.execute_module(entry_point, alter_sys)
  File "/root/.pex/unzipped_pexes/8441fa64fbac3368d66a56198197a0e21b924c36/.bootstrap/pex/pex.py", line 691, in execute_module
    runpy.run_module(module_name, run_name="__main__", alter_sys=alter_sys)
  File "/usr/lib/python3.8/runpy.py", line 207, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/root/.pex/unzipped_pexes/8441fa64fbac3368d66a56198197a0e21b924c36/heron/tools/ui/src/python/main.py", line 63, in <module>
    templates = Jinja2Templates(
  File "/root/.pex/installed_wheels/731dc61df60b32802b03d6c81bdd9757b24655fb/starlette-0.13.6-py3-none-any.whl/starlette/templating.py", line 52, in __init__
    assert jinja2 is not None, "jinja2 must be installed to use Jinja2Templates"
AssertionError: jinja2 must be installed to use Jinja2Templates

To Reproduce Steps to reproduce the behavior:

  1. Build docker image
  2. Helm install with the new image