我正在尝试通过以下操作将 app-engine-patch 与 pyamf 一起使用:http://pyamf.org/wiki/GoogleAppEngine因为我想将我的 Django <-> pyamf 应用程序迁移到 app-engine-patch <-> pyamf .
我现在所拥有的是我只用一行代码创建了我的 gateway.py:
import pyamf
只是为了测试我可以使用 pyamf 并且当我将浏览器指向该 url/文件时我得到空白页面,这样看起来不错(没有导入问题并且找到了 pyamf)但是在命令提示符中我使用“manage.py runserver”启动服务器" 我看到一堆错误,例如:
...
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2238, in Dispatch
self._module_dict)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2156, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2052, in ExecuteOrImportScript
exec module_code in script_module.__dict__
File "C:\Users\[my app-engine-patch application path]\common\appenginepatch\main.py", line 16, in <module>
patch_all()
File "C:\Users\[my app-engine-patch application path]\common\appenginepatch\appenginepatcher\patch.py", line 29, in patch_all
patch_app_engine()
File "C:\Users\[my app-engine-patch application path]\common\appenginepatch\appenginepatcher\patch.py", line 193, in patch_app_engine
from django.utils.encoding import force_unicode, smart_str
ImportError: No module named encoding
是否有任何 pyamf <-> app-engine-patch 专家可以提示我做错了什么以及如何设置 pyamf 以使用 app-engine-patch?