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/03/01 12:48:00 UTC
[jira] [Updated] (TINKERPOP-1895) gremlin-python lambdas do not
work with HaltedTraverserStrategy(DetachedFactory)
[ https://issues.apache.org/jira/browse/TINKERPOP-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stephen mallette updated TINKERPOP-1895:
----------------------------------------
Fix Version/s: 3.3.2
3.2.8
> gremlin-python lambdas do not work with HaltedTraverserStrategy(DetachedFactory)
> --------------------------------------------------------------------------------
>
> Key: TINKERPOP-1895
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1895
> Project: TinkerPop
> Issue Type: Bug
> Components: python
> Affects Versions: 3.3.1
> Reporter: Branden Moore
> Priority: Major
> Fix For: 3.2.8, 3.3.2
>
>
> When using the HaltedTraverserStrategy(o.a.t.g.s.u.d.DetachedFactory) in gremlin-python, lambdas cannot be processed, returning a Python NameError.
> Using the examples from the documentation, against gremlin-server-modern-py.yaml
>
> g.V().out().map(lambda: "x: len(x.get().value('name'))").sum().toList()
> [24L]
> g.withStrategies(HaltedTraverserStrategy("org.apache.tinkerpop.gremlin.structure.util.detached.DetachedFactory")).V().out().map(lambda: "x: len(x.get().value('name'))").sum().toList()
> GremlinServerError: 599: NameError: name 'TraversalStrategy' is not defined in <script> at line number 1
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)