GoogleAppEngine:エラー do_open() got an unexpected keyword argument ‘context’

Published on:
Last updated:

This post is also available in: 日本語 (Japanese)

GoogleAppEngineにデプロイしようと思ったら do_open() got an unexpected keyword argument 'context' というエラーが出ました。

どうやらpython2.7.9なのが問題らしく、python2.7.9 をアンインストールして python2.7.8 を再インストールすることで解決しました。

参考サイトのstackoverflow.comではpythonの再インストールの他に

--skip_sdk_update_check=yes

のオプション指定するみたいなアンサーがありましたが、僕の環境では上手く動作しませんでした。

あと、python のダウングレードの方法も pip あたりを上手く使えばいい方法があるかなと思いましたが、素直にアンインストールして python2.7.8 を再インストールする方法が無難みたいです。

python2.7.8 を再インストール後、とりあえず pip をインストールしておくと便利ですよ。
https://pip.pypa.io/en/latest/installing.html

参考引用:
http://stackoverflow.com/questions/27453497/deploying-google-app-engine-with-python-failed

No tags for this post.

About
Kuniyoshi Takemoto is the founder of Amelt.net LLC, and editor of this blog(www.amelt.net).Learn more and follow me on LinkedIn.