簡體   English   中英

從py2neo啟動並連接到neo4j時出錯

[英]error in starting and connecting to neo4j from py2neo

我正在嘗試從py2neo連接到neo4j:

    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,Neo4j和py2neo? 它們是否在py2neo.org上列為受支持的版本?

作為一項變通辦法,我一直在使用./bin/neo4j start從linux本身啟動Neo4j,即使我從linux注銷,它仍然保持啟動狀態。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM