【发布时间】:2011-04-17 05:51:34
【问题描述】:
我真的很想使用他们的 python 测试平台库为 Google App Engine 编写测试,但每次我尝试使用导入它时
from google.appengine.ext import testbed
我收到以下错误:
File "/Users/lhundeboel/Projects/busybeeapp/tests/test_something.py", line 1, in <module>
from google.appengine.ext import testbed
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/testbed/__init__.py", line 116, in <module>
from google.appengine.api.images import images_stub
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/images/images_stub.py", line 37, in <module>
import _imaging
ImportError: No module named _imaging
有谁知道 _imaging 模块是什么,以及如何导入它? 我必须承认,我是 Python 新手,所以这可能是我错过的一些基本内容。
【问题讨论】:
标签: python unit-testing google-app-engine