Skip to content

KeyError: 'WERKZEUG_SERVER_FD' #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stevem995 opened this issue Oct 20, 2022 · 1 comment · Fixed by #246
Closed

KeyError: 'WERKZEUG_SERVER_FD' #241

stevem995 opened this issue Oct 20, 2022 · 1 comment · Fixed by #246

Comments

@stevem995
Copy link

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.

@krishnabhushank
Copy link

Hi. Is there any workaround for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants