python - 没有这样的 ServerPlugin : GremlinPlugin

标签 python neo4j bulbs

我想使用 python 脚本将一些数据放入 Neo4j 数据库。我想bulbflow可以很简单地做到这一点。

我从他们的主页和文档中获得了这个小脚本。

#!/usr/bin/python
from bulbs.neo4jserver import Graph
g = Graph()
james = g.vertices.create(name="James")

但是当我运行它时,我得到了这个错误:

Traceback (most recent call last):
  File "./bulb.py", line 4, in <module>
    james = g.vertices.create(name="James")
  File "/usr/lib/python2.7/site-packages/bulbs/element.py", line 565, in create
    resp = self.client.create_vertex(data, keys=_keys)
  File "/usr/lib/python2.7/site-packages/bulbs/neo4jserver/client.py", line 424, in create_vertex
    return self.create_indexed_vertex(data, index_name, keys=keys)
  File "/usr/lib/python2.7/site-packages/bulbs/neo4jserver/client.py", line 1054, in create_indexed_vertex
    return self.gremlin(script,params)
  File "/usr/lib/python2.7/site-packages/bulbs/neo4jserver/client.py", line 384, in gremlin
    return self.request.post(path, params)
  File "/usr/lib/python2.7/site-packages/bulbs/rest.py", line 131, in post
    return self.request(POST, path, params)
  File "/usr/lib/python2.7/site-packages/bulbs/rest.py", line 186, in request
    return self.response_class(http_resp, self.config)
  File "/usr/lib/python2.7/site-packages/bulbs/neo4jserver/client.py", line 217, in __init__
    self.handle_response(response)
  File "/usr/lib/python2.7/site-packages/bulbs/neo4jserver/client.py", line 249, in handle_response
    response_handler(response)
  File "/usr/lib/python2.7/site-packages/bulbs/rest.py", line 39, in not_found
    raise LookupError(http_resp)
LookupError: ({'status': '404', 'access-control-allow-origin': '*', 'content-type': 'application/json; charset=UTF-8', 'content-length': '833', 'server': 'Jetty(9.0.5.v20130815)'}, '{\n  "message" : "No such ServerPlugin: \\"GremlinPlugin\\"",\n  "exception" : "PluginLookupException",\n  "fullname" : "org.neo4j.server.plugins.PluginLookupException",\n  "stacktrace" : [ "org.neo4j.server.plugins.PluginManager.extension(PluginManager.java:124)", "org.neo4j.server.plugins.PluginManager.invoke(PluginManager.java:165)", "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:312)", "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:134)", "java.lang.reflect.Method.invoke(Unknown Source)", "org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:139)", "org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112)", "java.lang.Thread.run(Unknown Source)" ]\n}')

bulbflowNeo4j 已根据 http://bulbflow.com/download/ 正确安装. Neo4j 以默认配置运行,我可以打开 http://localhost:7474/

你能帮我解决这个问题吗?

谢谢你,FrostyX

最佳答案

从 Neo4j 2.0 开始,不再捆绑 gremlin 插件。但是,您可以轻松地自己构建和安装它,请参阅 https://github.com/neo4j-contrib/gremlin-plugin .

关于python - 没有这样的 ServerPlugin : GremlinPlugin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21637155/

相关文章:

python - 是不是很多 Python 库的代码质量都比较低?

docker - 在 Docker 容器中填充 Neo4J

python - 选择合适的方式在 Python 中使用 Neo4j

Python 和图数据库。使用 java lib 包装器还是 REST api?

python - 有没有办法为 Jupyter Notebook 创建桌面快捷方式?

python - 当设置了最大内存限制时,找出 python 中的 redis 内存使用情况

java - Neo4j - 使用 Java API 获取属于索引的所有节点

macos - 如何在mac上安装/启动neo4j?

python - Gremlin 使用灯泡通过 Groovy 脚本进行查询

python - BeautifulSoup 与 Jython