Google App Engine cannot find gdata module

半腔热情 提交于 2019-12-01 07:36:09

Your .bashrc is not known to Google App Engine. Make sure the gdata directory (with all its proper contents) is under your application's main directory!

See this article, particularly (and I quote):

To use this library with your Google App Engine application, simply place the library source files in your application's directory, and import them as you usually would. The source directories you need to upload with your application code are src/gdata and src/atom. Then, be sure to call the gdata.alt.appengine.run_on_appengine function on each instance of a gdata.service.GDataService object. There's nothing more to it than that!

The gdata client library installation script installs the modules in the wrong directory for ubuntu python installation.

sudo mv /usr/local/lib/python2.6/dist-packages/* /usr/lib/python2.6/dist-packages

try adding this to your script:

import sys
sys.path.append('<directory where gdata.auth module is saved>')
import gdata.auth
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!