在 gae 服务器中导入 gdata.photos.service 时出错
我在 gae python proyect 中使用 python + django。
我正在使用 picasa python api,但在我的计算机中,我的 gdata.photos.service 没有问题,但是当我在 GAE 服务器中推送项目时,出现此错误:
ViewDoesNotExist at /
Tried main in module trazovillena.main.views. Error was: 'module' object has no attribute 'v1_deprecated'
如果我评论这一行:
import gdata.photos.service
一切正常,请购买我无法使用 google picasa api。我在互联网上搜索问题,人们说一些关于 init.py 的事情,但我在项目/gdata/photos 中一切都很好,它可以在其他机器上运行,但不能在应用程序引擎中运行。
您可以在以下位置看到回溯: http://trazovillena.appspot.com/
Traceback (innermost last) Switch to copy-and-paste view /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/handlers/base.py in get_response callback, callback_args, callback_kwargs = resolver.resolve(request.path) ... ▶ Local vars /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/urlresolvers.py in resolve sub_match = pattern.resolve(new_path) ... ▶ Local vars /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/urlresolvers.py in resolve return self.callback, args, kwargs ... ▶ Local vars /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/urlresolvers.py in _get_callback raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)) ... ▶ Local vars
错误与非错误之间的唯一区别是包含 google 的 gdata-python-cliente api http://code.google.com/p/gdata-python-client/:
import gdata.photos.service
有什么想法吗?
非常感谢。抱歉我的英语不好。
I'm using python + django in gae python proyect.
I'm working with picasa python api, but in my computer i haven't problems with gdata.photos.service, but when i push project in GAE servers i have this error:
ViewDoesNotExist at /
Tried main in module trazovillena.main.views. Error was: 'module' object has no attribute 'v1_deprecated'
If i comment this line:
import gdata.photos.service
All work fine, buy i can't use google picasa api. I search problem in internet and people say something about init.py but i have all fine in project/gdata/photos and it works in anothers machines, but not in app engine.
You can see Traceback in : http://trazovillena.appspot.com/
Traceback (innermost last) Switch to copy-and-paste view /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/handlers/base.py in get_response callback, callback_args, callback_kwargs = resolver.resolve(request.path) ... ▶ Local vars /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/urlresolvers.py in resolve sub_match = pattern.resolve(new_path) ... ▶ Local vars /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/urlresolvers.py in resolve return self.callback, args, kwargs ... ▶ Local vars /base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/urlresolvers.py in _get_callback raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)) ... ▶ Local vars
Only difference between error or not error is include gdata-python-cliente api of google http://code.google.com/p/gdata-python-client/ :
import gdata.photos.service
Some idea ?
A lot of thx. Sorry for my poor english.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯,您的网站在线,我假设您现在使用的是 Django 1.x,而不是 appengine 提供的旧 0.96 Django?
ehm, your site is online, i presume that u are using now Django 1.x instead of the old 0.96 Django provided by appengine ?
将 gdata/src 放入您的应用程序根文件夹
put gdata/src to your app root folder