Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/machina/images/identifier/src/identifier.py", line 121, in callback
type=resolved_type)
File "/src/pyorient/pyorient/ogm/broker.py", line 56, in create
return self.g.create_vertex(self.element_cls, **kwargs)
File "/src/pyorient/pyorient/ogm/graph.py", line 532, in create_vertex
result = self.client.command(self.create_vertex_command(vertex_cls, **kwargs))[0]
File "/src/pyorient/pyorient/orient.py", line 481, in command
return self.get_message("CommandMessage").prepare((QUERY_CMD,) + args).send().fetch_response()
File "/src/pyorient/pyorient/utils.py", line 48, in wrap_function
return wrap(*args, **kwargs)
File "/src/pyorient/pyorient/utils.py", line 61, in wrap_function
return wrap(*args, **kwargs)
File "/src/pyorient/pyorient/messages/commands.py", line 128, in prepare
self._encode_field(x) for x in _payload_definition
File "/src/pyorient/pyorient/messages/commands.py", line 128, in <genexpr>
self._encode_field(x) for x in _payload_definition
File "/src/pyorient/pyorient/messages/database.py", line 379, in _encode_field
_content = struct.pack("!i", len(v)) + v
TypeError: object of type 'VertexCommand' has no len()
Until official (or stable) maintenance of the pyorient project happens, Machina will have to continue to depend on an older version of OrientDB and another pyorient fork.
OrientDB's Python client has been consistently broken for the past couple years. A newer fork (https://github.com/orientechnologies/pyorient/issues/42, https://github.com/brucetony/pyorient) claims to support 3.1.x, but using the 3.1.12 Docker image results in the below error:
Until official (or stable) maintenance of the pyorient project happens, Machina will have to continue to depend on an older version of OrientDB and another pyorient fork.
Working client: https://github.com/alanmeeson/pyorient.git@0317a87369675df9b33fd38af451099c3c011d40#egg=pyorient Working server: 2.2