You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Pierce Freeman (JIRA)" <ji...@apache.org> on 2018/10/03 18:30:00 UTC
[jira] [Created] (TINKERPOP-2057) TypeError when grouping by
multiple attributes
Pierce Freeman created TINKERPOP-2057:
-----------------------------------------
Summary: TypeError when grouping by multiple attributes
Key: TINKERPOP-2057
URL: https://issues.apache.org/jira/browse/TINKERPOP-2057
Project: TinkerPop
Issue Type: Bug
Components: python
Affects Versions: 3.3.3
Reporter: Pierce Freeman
The python serialization engine fails when trying to group a path by two intermediate variables:
{code:java}
graph = Graph()
g = graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g'))
g.V().as_("a").out().out().as_("b").path().group().by(__.select("a", "b")).unfold().toList()
{code}
{code:java}
~/tinkerpop/gremlin-python/src/main/jython/gremlin_python/structure/io/graphsonV3d0.py in objectify(cls, l, reader)
456 while x < len(l):
457 new_dict[reader.toObject(l[x])] = reader.toObject(l[x + 1])
--> 458 x = x + 2
459 return new_dict
460
TypeError: unhashable type: 'dict'
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)