get-started-python icon indicating copy to clipboard operation
get-started-python copied to clipboard

running sample with python3

Open XAV-01 opened this issue 5 years ago • 1 comments

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

XAV-01 avatar Jun 06 '19 16:06 XAV-01

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

For example:

python-3.7.1

MartykQ avatar Sep 24 '19 09:09 MartykQ