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

Re: Running flask server under virtualenv

2017-08-14 Thread Steve D'Aprano
On Tue, 15 Aug 2017 01:08 am, Frustrated Learner wrote: > I am getting the following error when running flask server. I have a model > called binary. I am guessing a path issue. In the model, the code is: > > from __future__ import absolute_import > from swagger_server.models.binary import

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