使用Bulls/python和Neo4j 2.0的错误消息

使用Bulls/python和Neo4j 2.0的错误消息,python,neo4j,bulbs,Python,Neo4j,Bulbs,使用Neo4j 2.0和Python 2.7.6—我尝试了基于Bulls软件包执行几个脚本,但不断出现以下错误: Traceback (most recent call last): File "D:/neo4jdb/testingbulbs2.7", line 8, in <module> james = g.vertices.create(name="James") File "C:\Python27\lib\site-packages\bulbs\element

使用Neo4j 2.0和Python 2.7.6—我尝试了基于Bulls软件包执行几个脚本,但不断出现以下错误:

Traceback (most recent call last):
  File "D:/neo4jdb/testingbulbs2.7", line 8, in <module>
    james = g.vertices.create(name="James")
  File "C:\Python27\lib\site-packages\bulbs\element.py", line 565, in create
    resp = self.client.create_vertex(data, keys=_keys)
  File "C:\Python27\lib\site-packages\bulbs\neo4jserver\client.py", line 424, in create_vertex
    return self.create_indexed_vertex(data, index_name, keys=keys)
  File "C:\Python27\lib\site-packages\bulbs\neo4jserver\client.py", line 1027, in create_indexed_vertex
    return self.gremlin(script,params)
  File "C:\Python27\lib\site-packages\bulbs\neo4jserver\client.py", line 384, in gremlin
    return self.request.post(path, params)
  File "C:\Python27\lib\site-packages\bulbs\rest.py", line 128, in post
    return self.request(POST, path, params)
  File "C:\Python27\lib\site-packages\bulbs\rest.py", line 183, in request
    return self.response_class(http_resp, self.config)
  File "C:\Python27\lib\site-packages\bulbs\neo4jserver\client.py", line 217, in __init__
    self.handle_response(response)
  File "C:\Python27\lib\site-packages\bulbs\neo4jserver\client.py", line 249, in handle_response
    response_handler(response)
  File "C:\Python27\lib\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': '838', 'server': 'Jetty(9.0.z-SNAPSHOT)'}, '{\r\n  "message" : "No such ServerPlugin: \\"GremlinPlugin\\"",\r\n  "exception" : "PluginLookupException",\r\n  "fullname" : "org.neo4j.server.plugins.PluginLookupException",\r\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:132)", "org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112)", "java.lang.Thread.run(Unknown Source)" ]\r\n}')
回溯(最近一次呼叫最后一次):
文件“D:/neo4jdb/testingbulbs2.7”,第8行,在
james=g.vertices.create(name=“james”)
文件“C:\Python27\lib\site packages\bulls\element.py”,第565行,在create中
resp=self.client.create_顶点(数据,关键点=_关键点)
文件“C:\Python27\lib\site packages\bulls\neo4jserver\client.py”,第424行,位于创建顶点
返回self.create_index_顶点(数据、索引名称、键=键)
文件“C:\Python27\lib\site packages\bulls\neo4jserver\client.py”,第1027行,位于创建索引顶点中
返回self.gremlin(脚本,参数)
文件“C:\Python27\lib\site packages\bulls\neo4jserver\client.py”,第384行,gremlin格式
返回self.request.post(路径,参数)
文件“C:\Python27\lib\site packages\bulls\rest.py”,第128行,在post中
返回self.request(POST、path、params)
请求中第183行的文件“C:\Python27\lib\site packages\bulls\rest.py”
返回self.response\u类(http\u resp,self.config)
文件“C:\Python27\lib\site packages\bulls\neo4jserver\client.py”,第217行,在__
自我处理_响应(响应)
文件“C:\Python27\lib\site packages\bulls\neo4jserver\client.py”,第249行,在handle\u响应中
响应处理程序(响应)
未找到文件“C:\Python27\lib\site packages\bulls\rest.py”,第39行
raise LookupError(http_resp)
LookupError:({'status':'404','access control allow origin':'*','content type':'application/json;charset=UTF-8','content length':'838','server':'Jetty(9.0.z-SNAPSHOT)},{\r\n“消息”:“没有这样的服务器插件:\\\\\\\\”GremlinPlugin\\”,\r\n“异常”:“PluginLookupException”,\r\n“全名”:“org.neo4j.server.plugins.PluginLookupException”、\r\n“stacktrace”:[“org.neo4j.server.plugins.PluginManager.extension(PluginManager.java:124)”、“org.neo4j.server.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(未知源)”,“org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatcher(TransactionalRequestDispatcher.java:132)”,“org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112)”,“java.lang.Thread.run(未知源)”]\r\n}
我注意到一些错误消息中有额外的EOL字符。这可能是问题所在吗?

错误消息说:“没有这样的服务器插件:GremlinPlugin”

在Neo4j 2.0中,gremlin插件已经从核心产品中删除,需要单独安装,您可以在找到源代码

然而,gremlin插件所依赖的蓝图似乎还不能用于Neo4j 2.0


因此,除非你想用blueprint和gremlin插件的源代码弄脏你的手,否则你最好使用Neo4j 1.9.5。

gremlin将与Neo4j 2.0配合使用,尽管它目前需要一些混乱(参见下面的说明)。据推测,今年春天的下一个TinkerPop版本将使它变得更容易。Neo4j 2.0对Cypher语言有非常有用的更新。我建议使用它,而不是更早的版本

git clone https://github.com/tinkerpop/gremlin.git

cd gremlin/gremlin-groovy/

[edit gremlin/gremlin-groovy/pom.xml to uncomment <!--dependency> block containing neo4j2 and comment out neo4j block]

[also edit same file so that neo4j2 block has <scope>compile</scope> (I don't know that this is strictly necessary)]

'mvn clean install' in gremlin/ directory

executable is gremlin/gremlin-groovy/gremlin.sh

If you get an error like:
"groovysh_evaluate: 51: unable to resolve class Neo4jGraph"

use the Neo4j2Graph class like this:

g = new Neo4j2Graph("/usr/local/neo4j-community-2.0.1/data/graph.db")
git克隆https://github.com/tinkerpop/gremlin.git
cd gremlin/gremlin groovy/
[编辑gremlin/gremlin groovy/pom.xml以取消注释