1

当我尝试运行 cisco nxapi 代码时,出现以下错误。

/usr/local/lib/python2.7/dist-packages/requests/init .py:91: RequestsDependencyWarning: urllib3 (1.23) 或 chardet (2.3.0) 与支持的版本不匹配!

RequestsDependencyWarning) Traceback(最近一次调用最后一次):文件“NXAPI.py”,第 31 行,响应 = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)) .json() 文件“/usr/local/lib/python2.7/dist-packages/requests/models.py”,第 896 行,在 json 中返回 complexjson.loads(self.text, **kwargs) 文件“/usr /local/lib/python2.7/dist-packages/simplejson/init .py ”,第 518 行,加载返回 _default_decoder.decode(s) 文件“/usr/local/lib/python2.7/dist-packages/simplejson /decoder.py”,第 370 行,在 decode obj 中,end = self.raw_decode(s) 文件“/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py”,第 400 行,在 raw_decode返回 self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError:期望值:第 1 行第 1 列(字符 0)

请让我知道我该如何摆脱这个。

4

0 回答 0