IBM-Cloud / get-started-python

A Python application and tutorial that use Flask framework to provide a REST API to receive requests from the UI. The API then persists the data to a Cloudant database.
https://console.ng.bluemix.net/docs/runtimes/python/getting-started.html
Apache License 2.0
121 stars 445 forks source link

OSError: [Errno 8] Exec format error #22

Open EmilyLarkin00 opened 5 years ago

EmilyLarkin00 commented 5 years ago

Been trying to get this working for a Partner who is using it to then work with the app. We are both getting the error in the title after trying to push to cloud. This is happening whether Docker is installed or not. I have tried adding your edit recenting about the buildpacks with no luck, and have added a 'shebang' as per some debugging online with no luck CF Push.txt CF logs.txt

EmilyLarkin00 commented 5 years ago

Hi, is anyone able to help with this please?

heduardoaa commented 5 years ago

I have the same problem too. Any solution?

jgarcows commented 5 years ago

It looks like this issue might be related: https://github.com/pallets/flask/issues/3189

You could try removing the debug=True on line 88 of hello.py

You could also try to add #!/usr/bin/env python as the first line of hello.py.