博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
cms.auth.json在结尾多写了一个逗号不识别
阅读量:6341 次
发布时间:2019-06-22

本文共 1942 字,大约阅读时间需要 6 分钟。

hot3.png

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)最后发现问题是多了一个逗号

转载于:https://my.oschina.net/u/2002748/blog/468714

你可能感兴趣的文章
Spark新愿景:让深度学习变得更加易于使用——见https://github.com/yahoo/TensorFlowOnSpark...
查看>>
linux磁盘配额
查看>>
NFS文件共享服务器的搭建
查看>>
IP_VFR-4-FRAG_TABLE_OVERFLOW【cisco设备报错】碎片***
查看>>
Codeforces Round #256 (Div. 2) D. Multiplication Table 【二分】
查看>>
ARM汇编指令格式
查看>>
HDU-2044-一只小蜜蜂
查看>>
HDU-1394-Minimum Inversion Number
查看>>
[转] createObjectURL方法 实现本地图片预览
查看>>
JavaScript—DOM编程核心.
查看>>
JavaScript碎片
查看>>
Bootstrap-下拉菜单
查看>>
soapUi 接口测试
查看>>
【c学习-12】
查看>>
工作中MySql的了解到的小技巧
查看>>
loadrunner-2-12日志解析
查看>>
C# Memcached缓存
查看>>
京东基于Spark的风控系统架构实践和技术细节
查看>>
什么时候使用CountDownLatch
查看>>
C#之MemberwiseClone与Clone
查看>>