I am unable to get a Python package, gspread, to work in GAE.
My project is in D:\Documents\Google Cloud\myapp
. I installed gspread
using:
c:\python27\python.exe setup.py install --home="D:\Documents\Google Cloud\myapp"
All the files appear to be installed in D:\Documents\Google Cloud\myapp\lib\python
without offering me a choice. In fact, I have to add this path to PYTHONPATH
in order for setup.py to run properly.
If I then run Python, I can import gspread
in the interpreter.
However, in myapp, I can't import (ImportError: No module named gspread
) even when I added that long path to sys.path
. My sys.path
at run-time contains, among other values,:
'D:\\Documents\\Google Cloud\\myapp\\lib\\python'
'D:\\Documents\\Google Cloud\\myapp'
'D:\\Documents\\Google Cloud\\myapp\\lib'
What is needed to get this third party module to work?