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 446 forks source link

running sample with python3 #23

Open XAV-01 opened 5 years ago

XAV-01 commented 5 years ago

Hi I encounter the following error when run python3 hello.py

    return jsonify(list(map(lambda doc: doc['name'], db)))
    RuntimeError: generator raised StopIteration

How can I work arround this ? Thank you for your help

MartykQ commented 4 years ago

You need to add python version in the runtime.txt file in the root of your application:

For example:

python-3.7.1