Python导入gdata Google Apps引擎:课程构建器 [英] Python import gdata Google Apps Engine: Course Builder

查看:126
本文介绍了Python导入gdata Google Apps引擎:课程构建器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Course Builder,并且正在尝试导入GData库,以便我们可以在注册该课程时使用配置API将成员添加到Google群组中。

I'm working with Google Course Builder and I'm trying to import the GData library so that I can utilize the provisioning API to add members to google groups as they register for the course.

里面的 utils.py 当然是builder的注册函数。

Inside of utils.py of course builder lies the functions for registration.

问题是当我添加导入gdata.apps.groups.client 然后在本地运行服务器时,浏览器返回内部服务器错误500.

The problem is when I add import gdata.apps.groups.client and then run the server locally, the browser returns an internal server error 500.

很明显,我在这里错过了一个步骤,但是如果不在我的网站包文件夹中,我会在哪里放置GData文件夹?我已将它复制到课程生成器中的所有目录中,但没有成功。

Obviously, I'm missing a step here, but where do I put the GData folder if not in my site-packages folder? I've copied it into all of the directories in course builder with no success.

以下是<$ c中的原始导入部分$ c> utils.py file:

Here is the original import section in the utils.py file:

import logging, urlparse, webapp2, jinja2
from models.models import Student, Unit, MemcacheManager
from google.appengine.api import users
from google.appengine.ext import db
from models.utils import getAllScores

任何帮助都很重要 。

推荐答案

尝试从 gdata-python-client 与您的app.yaml(AppEngine应用程序的根目录)位于同一文件夹中。

Try putting gdata and atom from the gdata-python-client in the same folder as your app.yaml (root of your AppEngine app).

这篇关于Python导入gdata Google Apps引擎:课程构建器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆