出错现象:
Traceback (most recent call last):
File "./mongo_lock", line 11, in ?
import simplejson as json
File "/usr/lib/python2.4/site-packages/simplejson-2.5.0-py2.4-linux-x86_64.egg/simplejson/__init__.py", line 112, in ?
from encoder import JSONEncoder
File "/usr/lib/python2.4/site-packages/simplejson-2.5.0-py2.4-linux-x86_64.egg/simplejson/encoder.py", line 398
if (not _bigint_as_string or
^
SyntaxError: invalid syntax
出错原因:
simplejson版本不正确
解决办法:
easy_install -m simplejson
yum install python simplejson
阅读(1935) | 评论(0) | 转发(0) |