Livingdeadの日記: Google App Engine + Python 2.5 + simplejson でエラー
Python 2.5にsimplejsonモジュールをインストールしていると、Google App Engineのsimplejsonモジュールとコンフリクトするらしい。Google App Engineにはdjangoのライブラリが含まれているようなので、そちらを使うように書き換えればコンフリクト解消。
It looks that it gives the error when you have installed simplejson in your python
dist and dev_appserver is mixing its own simplejson (which is located in
django\utils) and the python's sipmlejson. The solution is to go to"c:\Program Files\Google\google_appengine\google\appengine\ext\key_range\__init__.py"
, line 26and change:
import simplejson
to:
from django.utils import simplejsonNow dev_appserver is using its own library from django/utils
Issue 2086: Can't run helloworld after upgrading from 1.2.4 to 1.2.5
なお、Python 2.6.5ならjsonモジュールが最初から用意されているのであえてsimplejsonモジュールをインストールする必要もないため問題は起きない。Google App Engine SDKのローカルサーバはPython 2.6.5でも動く。Python 2.6.2~2.6.4rcあたりでは動かないIssue 7120: logging depends on multiprocessing。
Google App Engine + Python 2.5 + simplejson でエラー More ログイン