I have a basic REST backend in Python that I am trying to deploy to Google App Engine. However, after following the instructions both here and here, my script cannot import some of my third party libraries.
I've installed all of the libraries in the lib/ directory, I've added 'appengine_config.py' to add lib
to the path so the libraries should be discovered yet requests always fail with
Traceback (most recent call last):
(/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/cgi.py:122)
File "/base/data/home/apps/myapp/myapp/Rest.py", line 2, in <module>
import flask_sqlalchemy
ImportError: No module named flask_sqlalchemy
I have this app.yaml
runtime: python27
api_version: 1
threadsafe: false
service: feedback-backend
handlers:
- url: /*
script: Rest.py
beta_settings:
cloud_sql_instances: feedbackmysql:us-east4:feedback-mysql
skip_files:
venv/*
and this requirements.txt
aniso8601==1.3.0
click==6.7
Flask==0.12.2
Flask-RESTful==0.3.6
Flask-Restless==0.17.0
Flask-SQLAlchemy==2.3.2
itsdangerous==0.24
Jinja2==2.9.6
MarkupSafe==1.0
mimerender==0.6.0
pep8==1.7.0
PyMySQL==0.7.11
python-dateutil==2.6.1
python-mimeparse==1.6.0
pytz==2017.2
six==1.11.0
SQLAlchemy==1.1.14
virtualenv==15.1.0
Werkzeug==0.12.2