Re: Running flask on AWS SAM

2017-10-14 Thread Frustrated learner
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

Re: Running flask on AWS SAM

2017-10-13 Thread Frustrated learner
Any takers? -- https://mail.python.org/mailman/listinfo/python-list

Running flask on AWS SAM

2017-10-12 Thread Frustrated learner
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

Re: Running flask server under virtualenv

2017-08-14 Thread Frustrated learner
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

Re: Running flask server under virtualenv

2017-08-14 Thread Frustrated learner
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

Running flask server under virtualenv

2017-08-14 Thread Frustrated Learner
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