Я новичок в этом, и я пытаюсь заставить Titan работать с Python. Я бил головой об этом полтора дня и никуда не могу. Я пробовал лампочки и rexpro-python, но ничего не работает.Как вы получаете базу данных диаграмм Титана, работающую с Python?
В RexPro-питона следующий код:
from rexpro import RexProConnection
conn = RexProConnection('localhost', 8184, 'graph')
будет висеть и сервер выдает следующее сообщение (для титановыми версий 0.3.2, 0.3.1 и 0.2.1)
13/09/18 16:59:27 WARN filter.RexProMessageFilter: unsupported rexpro version: 1
В Луковицы:
from bulbs.config import Config, DEBUG
from bulbs.rexster import Graph
config = Config('http://localhost:8182/graphs/graph')
g = Graph(config)
Выдает следующую ошибку:
SystemError: ({'status': '500', 'transfer-encoding': 'chunked', 'server': 'grizzly/2.2.16', 'connection': 'close', 'date': 'Wed, 18 Sep 2013 21:06: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), any(), find(), any(groovy.lang.Closure), with(groovy.lang.Closure), _(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}')
с подобным исключением на сервере Titan. Кто-нибудь получил это, чтобы работать?
Использование bulbs.titan не bulbs.rexster – espeed