Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1895

gremlin-python lambdas do not work with HaltedTraverserStrategy(DetachedFactory)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.3.1
    • None
    • python
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              bjmoor Branden Moore
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: