我正在尝试使用ArangoDB的PyArango驱动程序。我使用的是Python3.5.2 for Windows (这是我的组织提供的)和在我的计算机上本地运行的ArangoDB 3.0。
我在python交互式shell (或脚本)中运行以下代码:
from pyArango.connection import *
myConnection = Connection()当评估Connection()行时,会将以下内容输出到控制台:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\xxxxx\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pyArango\connection.py", line 88, in __init__
self.reload()
File "C:\Users\xxxxx\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pyArango\connection.py", line 107, in reload
data = r.json()
File "C:\Users\xxxxx\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\models.py", line 812, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\xxxxx\AppData\Local\Programs\Python\Python35-32\lib\json\__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "C:\Users\xxxxx\AppData\Local\Programs\Python\Python35-32\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\xxxxx\AppData\Local\Programs\Python\Python35-32\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)https://www.arangodb.com/tutorials/tutorial-python/和https://github.com/tariqdaouda/pyArango的在线教程/文档指出了对ArangoDB 3.x和Python3.4的支持。有没有其他人在尝试使用Python3.5和pyArango驱动程序时遇到了这个问题?如果是这样,有没有解决这个问题的办法?
谢谢
https://stackoverflow.com/questions/38513422
复制相似问题