Skip to content

KeyError: 'WERKZEUG_SERVER_FD' #241

Closed
@stevem995

Description

@stevem995

Describe the bug
main.py fails with error:
python main.py
Traceback (most recent call last):
File "/Users/a369505/gitwkspace/US1050985/pyms/src/main.py", line 15, in
app.run()
File "/Users/a369505/.pyenv/versions/3.9.9/lib/python3.9/site-packages/flask/app.py", line 1188, in run
run_simple(t.cast(str, host), port, self, **options)
File "/Users/a369505/.pyenv/versions/3.9.9/lib/python3.9/site-packages/werkzeug/serving.py", line 1069, in run_simple
fd = int(os.environ["WERKZEUG_SERVER_FD"])
File "/Users/a369505/.pyenv/versions/3.9.9/lib/python3.9/os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'WERKZEUG_SERVER_FD'

Unable to freeze version and get it to work.

To Reproduce
Steps to reproduce the behavior:

  1. python -m pip install py-ms[all]
  2. python main.py
    Expected behavior
    Flask runs.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS 12.6
  • Browser [e.g. chrome, safari] NA
  • Version [e.g. 22] NA

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] NA
  • OS: [e.g. iOS8.1] NA
  • Browser [e.g. stock browser, safari] NA
  • Version [e.g. 22] NA

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions