Chinaunix首页 | 论坛 | 博客
  • 博客访问: 616939
  • 博文数量: 73
  • 博客积分: 1813
  • 博客等级: 上尉
  • 技术积分: 1213
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-27 19:59
文章分类
文章存档

2013年(1)

2012年(12)

2011年(28)

2010年(31)

2009年(1)

我的朋友

分类: 系统运维

2013-03-29 11:24:39

出错现象:
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
阅读(1905) | 评论(0) | 转发(0) |
0

上一篇:Ubuntu应用

下一篇:没有了

给主人留下些什么吧!~~