You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2018/10/03 18:31:00 UTC

[jira] [Commented] (TINKERPOP-2057) TypeError when grouping by multiple attributes

    [ https://issues.apache.org/jira/browse/TINKERPOP-2057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16637350#comment-16637350 ] 

stephen mallette commented on TINKERPOP-2057:
---------------------------------------------

what version of gremlin-python is this? and what version of GraphSON are you using?

> 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
>            Priority: Major
>
> 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)