嗨,我正在尝试通过python调用图形,但出现此错误
作者:客户端由于身份验证失败而未被授权。
这是我的代码:
import csv
from py2neo import Graph, Node
N_MOVIES = 1000
N_RATINGS = 1000
N_TAGS = 1000
N_LINKS = 1000
USERNAME = "arooj"
PASS = "abcd" #default
graph = Graph("bolt://localhost:7687", auth = (USERNAME, PASS))
def main():
createGenreNodes()
print("Step 1 out of 4: loading movie nodes")
loadMovies()
print("Step 2 out of 4: loading rating relationships")
loadRatings()
print("Step 3 out of 4: loading tag relationships")
loadTags()
print("Step 4 out of 4: updating links to movie nodes")
loadLinks()
答案 0 :(得分:0)
第一次登录时,我们必须设置密码。
执行以下操作:
docker exec -it name_of_docker bash
密码壳-u neo4j -p neo4
这将要求新密码。更改密码后,请在代码中输入新密码。