我試圖Neo4j的連接從py2neo到的Neo4j:誤差在起動和連接從py2neo
from py2neo.server import GraphServer
server=GraphServer()
server.start()
在這個階段,當我檢查我看到日誌服務器已經啓動並運行:
2016-06-10 09:41:09.928-0600 INFO Initiating metrics..
2016-06-10 09:42:01.288-0600 INFO Successfully started database
2016-06-10 09:42:01.305-0600 INFO Starting HTTP on port 7474 (40 threads available)
2016-06-10 09:42:01.428-0600 INFO Mounted REST API at: /db/manage
2016-06-10 09:42:01.472-0600 INFO Mounting static content at /webadmin
2016-06-10 09:42:01.509-0600 INFO Mounting static content at /browser
2016-06-10 09:42:03.085-0600 INFO Remote interface ready and available at http://0.0.0.0:7474/
但在IPython中,我得到下面的錯誤:
TypeError Traceback (most recent call last)
<ipython-input-46-5e4be8f41f99> in <module>()
----> 1 server.start()
/usr/local/lib/python2.7/dist-packages/py2neo/server.pyc in start(self)
190 uri = None
191 kwargs = {}
--> 192 for line in out.decode("utf-8").splitlines(keepends=False):
193 if line.startswith("Using additional JVM arguments:"):
194 kwargs["jvm_arguments"] = shlex.split(line[32:])
TypeError: splitlines() takes no keyword arguments
如果需要任何更多的信息請隨時提出要求。
很有可能是Python版本之間不匹配。 –