我有一个创建的图表networkX
我正在使用 neonx 将其导入neo4j
在本地主机上。我有一个networkX
类型图称为G
。下面是代码:
data1 = json_graph.node_link_data(G)
H = json_graph.node_link_graph(data1)
results = neonx.write_to_neo("http://localhost:7474/db/data/", H, 'LINKS_TO')
我得到的错误是:
Traceback (most recent call last):
File "/Users/aman/venv/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2961, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-5-0d401e8987b7>", line 31, in <module>
results = neonx.write_to_neo("http://localhost:7474/db/data/", H, 'LINKS_TO')
File "/Users/aman/venv/lib/python3.7/site-packages/neonx/neo.py", line 86, in write_to_neo
batch_url = all_server_urls['batch']
KeyError: 'batch'
我认为问题在于您的 neo4j 实例需要身份验证,但 neonx 似乎不支持它。
禁用身份验证设置:dbms.security.auth_enabled=false
(see: https://neo4j.com/docs/operations-manual/current/security/authentication-authorization/enable/ https://neo4j.com/docs/operations-manual/current/security/authentication-authorization/enable/)
要验证这是问题所在,请将您的浏览器指向:http://localhost:7474/db/data/ http://localhost:7474/db/data/并查看是否提示您输入用户名和密码
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)