mozilla-iam/mozilla-aws-cli

Error : KeyError: 'WERKZEUG_SERVER_FD'

gene1wood opened this issue · 2 comments

This line in maws

os.environ["WERKZEUG_RUN_MAIN"] = "true"

appears to be triggering this issue pallets/werkzeug#2368

We're setting os.environ["WERKZEUG_RUN_MAIN"] = "true" in order to suppress the printing to the console of Flask information (as mentioned in cs01/gdbgui#425 (comment) )

The workaround for the moment appears to be downgrading werkzeug pip install 'Werkzeug<2.1.0'

hwine commented

Should we also be pinning all the requirements? Especially if maws is installable via pipx, pinning would be a good thing.

Should we also be pinning all the requirements? Especially if maws is installable via pipx, pinning would be a good thing.

Ya, that would probably be good. I'd say open an issue or PR that change.

This fix is deployed and available in mozilla-aws-cli==1.2.5