Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过使用如下文所示的新版Connection profiles指令,以解决 py2neo 2021.2.3 编译报错问题 #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions build_medicalgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ class MedicalGraph:
def __init__(self):
cur_dir = '/'.join(os.path.abspath(__file__).split('/')[:-1])
self.data_path = os.path.join(cur_dir, 'data/medical.json')
self.g = Graph(
host="127.0.0.1", # neo4j 搭载服务器的ip地址,ifconfig可获取到
http_port=7474, # neo4j 服务器监听的端口号
user="lhy", # 数据库user name,如果没有更改过,应该是neo4j
password="lhy123")
# self.g = Graph(
# host="127.0.0.1", # neo4j 搭载服务器的ip地址,ifconfig可获取到
# http_port=7474, # neo4j 服务器监听的端口号
# user="test", # 数据库user name,如果没有更改过,应该是neo4j
# password="test")
self.g = Graph('http://localhost:7474/', auth=("neo4j", "123456"))

'''读取文件'''
def read_nodes(self):
Expand Down