(TID) Fix WebUI and Compute components deployment issue
Reporters
- Pablo Armingol (TID)
- Lluis Gifre (CTTC) [reviewer]
Description
Describe the bug. Change in python/Flask package. "Werkzeug" dependencie missing in WebUI and Compute components.
Deployment environment
- Operating System (include version): any
- MicroK8s (include version and add-ons): any
- TeraFlowSDN (include release/branch-name/commit-id): develop
TFS deployment settings
- list of components deployed: WebUI, Compute
- particular configurations you applied: none
- any other particularity you might find important: none
Sequence of actions that resulted in the bug
- none
Document the explicit error
- Traceback (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/var/teraflow/compute/service/__main__.py", line 22, in <module>
from .rest_server.RestServer import RestServer
File "/var/teraflow/compute/service/rest_server/RestServer.py", line 17, in <module>
from common.tools.service.GenericRestServer import GenericRestServer
File "/var/teraflow/common/tools/service/GenericRestServer.py", line 17, in <module>
from flask import Flask, request
File "/usr/local/lib/python3.9/site-packages/flask/__init__.py", line 7, in <module>
from .app import Flask as Flask
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 27, in <module>
from . import cli
File "/usr/local/lib/python3.9/site-packages/flask/cli.py", line 17, in <module>
from .helpers import get_debug_flag
File "/usr/local/lib/python3.9/site-packages/flask/helpers.py", line 14, in <module>
from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.9/site-packages/werkzeug/urls.py)
Expected behaviour
- WebUI and Compute components fail in the docker deployment due to missing dependencies
References
- Reference name
- Author1, Author2, Author3, et. al., “My demo using feature,” in Conference-Name Demo Track, 20XX.
Edited by Pablo Armingol