virtualenvでgoogle app engine 1.6.0を動かす
google app engineの1.6.0がダウンロードできるようになっています。
http://code.google.com/intl/ja/appengine/downloads.html
リリースノートはこちら
http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes
1.5.5ではvirtualenvで作った環境で動かそうとするとエラーになりました。
File "/Applications/GoogleAppEngineLauncher1.6.0.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1756, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher1.6.0.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 640, in Decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher1.6.0.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1628, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher1.6.0.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 640, in Decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher1.6.0.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_import_hook.py", line 1571, in LoadModuleRestricted description) File "/Applications/GoogleAppEngineLauncher1.6.0.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/_webapp25.py", line 68, in <module> import cgi ImportError: No module named cgi
1.6.0でも直っていないようで、同様のエラーになりますので、パッチをあてる必要があります。
1.5.5のときとは違うパッチです。
cd /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools patch < ~/Downloads/dev_appserver_import_hook.patch
これで動くようになりました。