码迷,mamicode.com
首页 > Web开发 > 详细

cms.auth.json在结尾多写了一个逗号不识别

时间:2015-06-19 12:02:19      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:

Traceback (most recent call last):
  File "manage.py", line 90, in <module>
    startup = importlib.import_module(edx_args.startup)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/edx/app/edxapp/edx-platform/cms/startup.py", line 7, in <module>
    settings.INSTALLED_APPS  # pylint: disable=W0104
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py", line 184, in inner
    self._setup()
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 93, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/edx/app/edxapp/edx-platform/cms/envs/devstack.py", line 5, in <module>
    from .aws import * # pylint: disable=wildcard-import, unused-wildcard-import
  File "/edx/app/edxapp/edx-platform/cms/envs/aws.py", line 214, in <module>
    AUTH_TOKENS = json.load(auth_file)
  File "/usr/lib/python2.7/json/__init__.py", line 278, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 57 column 5 (char 1517)

解决方法:(1)问题定位在 File "/edx/app/edxapp/edx-platform/cms/envs/aws.py", line 214, in <module>
                    AUTH_TOKENS = json.load(auth_file), 证明是问题出在cms.auth.json文件
                (2) 具体到这里ValueError: Expecting property name: line 57 column 5 (char 1517),证明57行左右有问题
                 (3)最后发现问题是多了一个逗号

cms.auth.json在结尾多写了一个逗号不识别

标签:

原文地址:http://my.oschina.net/u/2002748/blog/468714

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!