py2neo - neokit 在脚本中的使用
py2neo - neokit usage in script
我想使用 neokit 通过脚本管理我的 Neo4J 商店。
我正在使用 Windows 7、Python 3.5.2 (Anaconda 4.1.1) 和 py2neo v3.1.2。
Neo4J 是社区版本 3.0.4。
这是我的代码:
import neokit
home="C:\neo4j-community-3.0.4"
gs=neokit.GraphServer(home=home)
一些命令工作正常,例如
gs.control_script # returns C:\neo4j-community-3.0.4\bin\neo4j
a=gs.config('dbms.active_database') # Returns name of active database
gs.stop() # To stop the server.
但是其他命令 return 带有错误消息 ValueError: invalid literal for int() with base 10: 'running'
,neokit.py 中的第 515 行。例子是:
gs.start()
gs.http_port
gs.running()
我需要一些额外的配置吗?
感谢您的帮助。
恐怕 Neokit 不支持 Windows。
我想使用 neokit 通过脚本管理我的 Neo4J 商店。 我正在使用 Windows 7、Python 3.5.2 (Anaconda 4.1.1) 和 py2neo v3.1.2。 Neo4J 是社区版本 3.0.4。 这是我的代码:
import neokit
home="C:\neo4j-community-3.0.4"
gs=neokit.GraphServer(home=home)
一些命令工作正常,例如
gs.control_script # returns C:\neo4j-community-3.0.4\bin\neo4j
a=gs.config('dbms.active_database') # Returns name of active database
gs.stop() # To stop the server.
但是其他命令 return 带有错误消息 ValueError: invalid literal for int() with base 10: 'running'
,neokit.py 中的第 515 行。例子是:
gs.start()
gs.http_port
gs.running()
我需要一些额外的配置吗? 感谢您的帮助。
恐怕 Neokit 不支持 Windows。