py2neo 不能 运行 GraphServer

py2neo Can't run GraphServer

我在使用 py2neo 包中的服务器时遇到问题。

这是我的尝试:

from py2neo.server import GraphServer
server = GraphServer()

这会导致以下异常:

FileNotFoundError: [Errno 2] No such file or directory: '.\conf\neo4j-server.properties'

所以我查找了安装:

server = GraphServer("C:\Program Files (x86)\Neo4j Community\bin")

我得到相同异常的地方:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Program Files (x86)\Neo4j Community\bin\conf\neo4j-server.properties'

我查看了 neo4j-server.properties 的位置。它在 C:/Users/Me/AppData/Roaming/Neo4j_Community/ 但如果我使用它,它也不起作用...

py2neo 版本:2.0.7。 neo4j 版本 2.2.1 Python 3.4 Windows10.

我想路径一定有问题,但我没有找到任何解决办法。

我想要实现的目标:我想要一个功能,如果它是 运行 则关闭服务器并使用我仅用于测试的数据库启动一个新进程(并结束服务器和在 运行 测试后重新启动旧图形)。直到现在我都是手动操作的...

非常感谢

如文档中的服务器页面所述,此模块构建于 Linux 之上,并且可能只能在那里工作。 Windows.

我不支持这个功能

http://py2neo.org/2.0/server.html