espeed / bulbs

A Python persistence framework for graph databases like Neo4j, OrientDB and Titan.

Home Page:http://bulbflow.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No signature of method: groovy.lang.MissingMethodException.idx

ArkeologeN opened this issue · comments

I'm basically trying to use the Titan Graph with my python script using any direct wrapper or from the rexster. I just installed bulbs and it throws the following error:

SystemError: ({'status': '500', 'transfer-encoding': 'chunked', 'server': 'grizzly/2.2.16', 'connection': 'close', 'date': 'Thu, 20 Mar 2014 18:55:27 GMT', 'access-control-allow-origin': '*', 'content-type': 'application/json'}, '{"message":"","error":"javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: groovy.lang.MissingMethodException.idx() is applicable for argument types: () values: []\\nPossible solutions: is(java.lang.Object), find(), any(), with(groovy.lang.Closure), any(groovy.lang.Closure), find(groovy.lang.Closure)","api":{"description":"evaluate an ad-hoc Gremlin script for a graph.","parameters":{"rexster.returnKeys":"an array of element property keys to return (default is to return all element properties)","rexster.showTypes":"displays the properties of the elements with their native data type (default is false)","load":"a list of \'stored procedures\' to execute prior to the \'script\' (if \'script\' is not specified then the last script in this argument will return the values","rexster.offset.end":"end index for a paged set of data to be returned","rexster.offset.start":"start index for a paged set of data to be returned","params":"a map of parameters to bind to the script engine","language":"the gremlin language flavor to use (default to groovy)","script":"the Gremlin script to be evaluated"}},"success":false}')

However, I don't have rock solid code for it yet:

from bulbs.config import Config, DEBUG
from bulbs.rexster import Graph
config = Config("http://xxx.xx.xx.xx:8182/graphs/graph")
g = Graph(config)

Help to resolve this issue is appreciated!

For Titan, use bulbs.titan instead of bulbs.rexster...

from bulbs.titan import Graph
g = Graph()

Works! thanks!