I have tried to move to Python 2.7 from Python 2.5 but I keep getting the same error everytime.
I have made a very simple test in Python 2.5 working with the app.yaml fi
I've been having the same problem, and here's the answer.
For the Python 2.5 runtime, you are specifying a path to a file -- ie script: myfolder/myfile.py.
For the Python 2.7 runtime, you are specifying an Object. So assumping myfile.py contains an appropriate WSGI object 'app', it's specified as script: myfolder.myfile.app.
Use main.application
instead of main.py
in your app.yaml. You need the former in order to set threadsafe
to true
.