2

Trying to connect to ArangoDB using python

Code:

from pyArango.connection import *
conn = Connection(username="root", password="XXXXX")

Got below error

Trace:

Traceback (most recent call last):
    File "E:/Python/Nlp/imageTotext.py", line 177, in <module>
    conn = Connection(username="root", password="XXXXX")   File "C:\Users\am843946\AppData\Roaming\Python\Python27\site-packages\pyArango\connection.py",
line 105, in __init__
    self.reload()   File "C:\Users\am843946\AppData\Roaming\Python\Python27\site-packages\pyArango\connection.py",
line 124, in reload
    data = r.json()   File "C:\Users\am843946\AppData\Roaming\Python\Python27\site-packages\pyArango\connection.py",
line 19, in __call__
    raise e  ValueError: No JSON object could be decoded
2
  • which library are you using? Commented Sep 5, 2017 at 16:04
  • 1
    @AndrewGrothe his first time of code from pyArango.connection import * tells us he's using the pyArango library... Commented Nov 24, 2022 at 12:51

1 Answer 1

3

did you try to specify a connection URL like that?

conn = Connection(arangoURL="http://localhost:8529", username="root", password="")

That way it should work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.