Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask app fails - seems to have not installed the pips #48

Open
dpritchett opened this issue Sep 15, 2017 · 4 comments
Open

Flask app fails - seems to have not installed the pips #48

dpritchett opened this issue Sep 15, 2017 · 4 comments

Comments

@dpritchett
Copy link

dpritchett commented Sep 15, 2017

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
@dpritchett
Copy link
Author

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.

image

@tj
Copy link
Member

tj commented Sep 15, 2017

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!

@dpritchett
Copy link
Author

dpritchett commented Sep 15, 2017 via email

@tj
Copy link
Member

tj commented Sep 15, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants