[
https://issues.apache.org/jira/browse/TINKERPOP-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16306290#comment-16306290
]
stephen mallette commented on TINKERPOP-1860:
---------------------------------------------
Thanks for pointing this out. Upon investigation I'm seeing that we didn't have
a great body of tests for {{valueMap(true)}} - i'm adding some as part of this
fix. I notice that you are using GraphSON 3.0 which I had trouble configuring
with our tests - see TINKERPOP-1844 - i suspect the problem will get fixed as
part of that issue, so for now, I guess, this issue depends on that one. fwiw,
GraphSON 2.0 seems to work just fine with {{valueMap(true)}} the additional
tests I added in my branch of tp32/master both work.
> valueMap(True) result in error in gremlin-python
> ------------------------------------------------
>
> Key: TINKERPOP-1860
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1860
> Project: TinkerPop
> Issue Type: Bug
> Components: python
> Affects Versions: 3.3.0
> Environment: Windows 10
> jvm 1.8, python 3.5
> tinkerpop 3.3.0
> Reporter: yokota masanori
> Priority: Minor
>
> I use [True] value as a argument of valueMap() step. And it result in error
> as below.
> (This error didn't occur in Groovy Query and return list of Value Map with id
> and label)
> // Python
> graph = Graph()
> g =
> graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g'))
> g.V().valueMap(True).toList()
> =>
> TypeError
> ----> 1 g.V().valueMap(True).toList()
> ...
> ~\site-packages\gremlin_python\structure\io\graphsonV3d0.py in
> objectify(cls, l, reader)
> 453 x = 0
> 454 while x < len(l):
> --> 455 new_dict[reader.toObject(l[x])] = reader.toObject(l[x
> + 1])
> 456 x = x + 2
> 457 return new_dict
> TypeError: unhashable type: 'dict'
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)