如何修复json.decoder.JSONDecodeError

时间:2019-07-26 07:57:01

标签: python json

试图从GitHub安装某些东西,但我总是收到此错误。有什么方法可以解决这个问题?非常感谢你!

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/pyinstalive", line 11, in <module>
    load_entry_point('pyinstalive==3.1.6', 'console_scripts', 'pyinstalive')()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyinstalive/startup.py", line 321, in run
    pil.ig_api = auth.authenticate(username=pil.ig_user, password=pil.ig_pass)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyinstalive/auth.py", line 92, in authenticate
    json.loads(e.error_response).get("error_title", e.error_response)))
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

1 个答案:

答案 0 :(得分:0)

这似乎是pSMAC中的错误,其中不同的多任务作业尝试访问文件,而另一个进程对该文件具有锁定。参见AutoML的issue 591