Hello,
I have a flask based application which i am able to run locally.
$ python swagger_server/app.py
* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
I am trying to port this over to aws. I have all the dependencies and code
organized in the same folder.
Here is the transaction and
Any takers?
--
https://mail.python.org/mailman/listinfo/python-list
export SERVER_NAME="0.0.0.0:3000 sam local start-api"
just exports everything and does not execute.
I tried
export SERVER_NAME="0.0.0.0:3000" sam local start-api
comes back with the same error.
Shekar
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
I am using Python 3.62 on a mac. I am working under a virtualenv.
I generated server code via http://editor.swagger.io (Swagger UI)
Steps to reproduce
python3 -m venv flaskglobal
source flaskglobal/bin/activate
cp binary to flaskglobal and unzip contents
cd python-flask-server
pip install
My bad. I was playing around with it.
It should be:
from swagger_server.models.binary import Binary
--
https://mail.python.org/mailman/listinfo/python-list
Here is the complete stack trace
Traceback (most recent call last):
File
"/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py",
line 193, in _run_module_as_main
"__main__", mod_spec)
File
"/usr/local/Cellar/python3/3.6.2/Frameworks/Python.fram