【问题标题】:Error when trying to do an import of testbed尝试导入测试平台时出错
【发布时间】: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


    【解决方案1】:

    它是 PIL 的基于 C 的部分。正确安装 PIL。

    【讨论】:

    猜你喜欢
    • 2019-06-12
    • 2014-10-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-06-22
    相关资源
    最近更新 更多