Python Neo4jrestclient错误无法获取根目录
早些时候,在运行Python脚本时,我的代码工作正常:Python Neo4jrestclient错误无法获取根目录,python,neo4j,Python,Neo4j,早些时候,在运行Python脚本时,我的代码工作正常: **from neo4jrestclient.client import GraphDatabase from bottle import route, run,template,post,request,redirect gdb = GraphDatabase("http://localhost:7474/db/data/")* @route('/home') def open_home(): username="" pa
**from neo4jrestclient.client import GraphDatabase
from bottle import route, run,template,post,request,redirect
gdb = GraphDatabase("http://localhost:7474/db/data/")*
@route('/home')
def open_home():
username=""
parties=[]
return template('home',dict(username=username,parties=parties))
此错误显示为:
回溯(最后一次调用):>gdb=>GraphDatabase(“localhost:7474/db/data/”)文件>“/usr/local/lib/python2.7/dist-packages/neo4jrestclient/client.py”,第4行,第78行,在init>中引发NotFoundError(response.status_-code,“无法获取根”)neo4jrestclient.exceptions.NotFoundError:code>[411]:需要长度。>客户端必须指定内容长度。.无法>获取根目录
是否删除了数据库中的所有节点 您是否已升级到Neo4j>=2.0?数据库不再包含默认节点0(参考节点),以前称为根节点
我可以推荐一个最新的python驱动程序。我相信您是由另一个用户运行的脚本,而不是以前运行的neo4jrestclient和Neo4j的哪个版本?linuxI的2.1.3版已经尝试添加了当时给出的示例电影数据库的节点,上次我遇到这个问题时,我通过插入新节点修复了它,但是这次运气不好。