Flask app fails - seems to have not installed the pips
Hi TJ! This seems like a pretty cool project and as a Go fan I think I'd prefer it to Serverless. Let me know if I can help!
Thanks, Daniel
❯❯❯ up url | xargs curl ~/P/u/o/python-flask (master)
{"message": "Internal server error"}⏎
❯❯❯ up logs -f ~/P/u/o/python-flask (master)
7:00:04am INFO starting name: app type: server
7:00:04am INFO found free port 37847 version: $LATEST
7:00:04am INFO executing "FLASK_APP=app.py python -m flask run -p $PORT" version: $LATEST
7:00:04am INFO waiting for http://127.0.0.1:37847 (timeout 5s) version: $LATEST
7:00:04am ERRO /usr/bin/python: No module named flask
7:00:09am FATA error: initializing relay: waiting for http://127.0.0.1:37847 to be in listening state: timed out after 5s
7:00:10am INFO starting name: app type: server
7:00:10am INFO found free port 36095 version: $LATEST
❯❯❯ up version ~/P/u/o/python-flask (master)
0.2.3
❯❯❯ git log ~/P/u/o/python-flask (master)
commit f524a2334358dfe19b3029aa8ba129636dd022b1 (HEAD -> master, origin/master, origin/HEAD)
Author: TJ Holowaychuk <[email protected]>
Date: Tue Sep 12 12:42:27 2017 -0700
tweak a description
I did a serverless example using Python last week and I wound up vendoring the deps in a folder inside the repo using some pretty goofy looking load path hacks inside my main .py file. I don't see any of that here though.

Hmm to be honest I don't know much about the Python package system. This is what we have right now (was contributed) which is supposed to vendor the dependencies: https://github.com/apex/up/blob/master/config.go#L377
Any help would be great!
I can't find (local) evidence of that .pypath folder in the repo or in ~.
I was using asdf and fish so I tried again from within Bash - no
difference.
How might I debug the build hooks? They seem to not be completing if they are running at all.
On Fri, Sep 15, 2017 at 12:12 PM, TJ Holowaychuk [email protected] wrote:
Hmm to be honest I don't know much about the Python package system. This is what we have right now (was contributed) which is supposed to vendor the dependencies: https://github.com/apex/up/blob/master/config.go#L377
Any help would be great!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/apex/up-examples/issues/48#issuecomment-329842762, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJCDRvPKKTWZ6pvmdSAELjh0ICoRgczks5siq_ygaJpZM4PY4C- .
hmm you could try up run build to run just the build hook. Maybe there's a better way to vendor the python dependencies into the zip