python-microservices / pyms

Library of utils to create REST Python Microservices
https://python-microservices.github.io/home/
GNU General Public License v3.0
265 stars 45 forks source link

KeyError: 'WERKZEUG_SERVER_FD' #241

Closed stevem995 closed 3 months ago

stevem995 commented 1 year ago

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):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

krishnabhushank commented 1 year ago

Hi. Is there any workaround for this issue.