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

2018-10-03 Thread Pierce Freeman (JIRA)


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

Pierce Freeman commented on TINKERPOP-2057:
---

Gremlin-python 3.3.3 & I believe the same for GraphSON.  Both were pulled from 
the latest mirrors.

> 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)


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

2018-10-03 Thread stephen mallette (JIRA)


[ 
https://issues.apache.org/jira/browse/TINKERPOP-2057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)