パスワードを忘れた? アカウント作成
204489 journal

Livingdeadの日記: Google App Engine + Python 2.5 + simplejson でエラー

日記 by Livingdead

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 26

and change:
      import simplejson
  to:
      from django.utils import simplejson

Now 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

この議論は賞味期限が切れたので、アーカイブ化されています。 新たにコメントを付けることはできません。
typodupeerror

Stableって古いって意味だっけ? -- Debian初級

読み込み中...