tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Kaiser-Cross (Jira)" <j...@apache.org>
Subject [jira] [Commented] (TINKERPOP-2346) In gremlin python, error when using 'valueMap' and 'with_' combined
Date Mon, 02 Mar 2020 20:26:00 GMT

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

Michael Kaiser-Cross commented on TINKERPOP-2346:
-------------------------------------------------

*Groovy console:*

gremlin> g.V().elementMap().toList()
No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal.elementMap()
is applicable for argument types: () values: []
Type ':help' or ':h' for help.

 *Python console:*
{noformat}
>>> g.V().elementMap().toList()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/michael/anaconda3/lib/python3.6/site-packages/gremlin_python/process/traversal.py",
line 58, in toList
    return list(iter(self))
  File "/Users/michael/anaconda3/lib/python3.6/site-packages/gremlin_python/process/traversal.py",
line 48, in __next__
    self.traversal_strategies.apply_strategies(self)
  File "/Users/michael/anaconda3/lib/python3.6/site-packages/gremlin_python/process/traversal.py",
line 573, in apply_strategies
    traversal_strategy.apply(traversal)
  File "/Users/michael/anaconda3/lib/python3.6/site-packages/gremlin_python/driver/remote_connection.py",
line 149, in apply
    remote_traversal = self.remote_connection.submit(traversal.bytecode)
  File "/Users/michael/anaconda3/lib/python3.6/site-packages/gremlin_python/driver/driver_remote_connection.py",
line 56, in submit
    results = result_set.all().result()
  File "/Users/michael/anaconda3/lib/python3.6/concurrent/futures/_base.py", line 432, in
result
    return self.__get_result()
  File "/Users/michael/anaconda3/lib/python3.6/concurrent/futures/_base.py", line 384, in
__get_result
    raise self._exception
  File "/Users/michael/anaconda3/lib/python3.6/site-packages/gremlin_python/driver/resultset.py",
line 90, in cb
    f.result()
  File "/Users/michael/anaconda3/lib/python3.6/concurrent/futures/_base.py", line 425, in
result
    return self.__get_result()
  File "/Users/michael/anaconda3/lib/python3.6/concurrent/futures/_base.py", line 384, in
__get_result
    raise self._exception
  File "/Users/michael/anaconda3/lib/python3.6/concurrent/futures/thread.py", line 56, in
run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/michael/anaconda3/lib/python3.6/site-packages/gremlin_python/driver/connection.py",
line 83, in _receive
    status_code = self._protocol.data_received(data, self._results)
  File "/Users/michael/anaconda3/lib/python3.6/site-packages/gremlin_python/driver/protocol.py",
line 112, in data_received
    raise GremlinServerError(message["status"])
gremlin_python.driver.protocol.GremlinServerError: 599: Could not locate method: DefaultGraphTraversal.elementMap()
 {noformat}

> In gremlin python, error when using 'valueMap' and 'with_' combined
> -------------------------------------------------------------------
>
>                 Key: TINKERPOP-2346
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2346
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 3.4.5
>            Reporter: Michael Kaiser-Cross
>            Priority: Major
>
> Simple example that demonstrates issue.
> >>> g.V().valueMap().with_(WithOptions.ids).toList()
>  
> gremlin_python.driver.protocol.GremlinServerError: 599: Could not locate method: DefaultGraphTraversal.with([1])
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message