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

gremlin-python calls non-existent methods

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.2.2, 3.2.3
    • Fix Version/s: 3.2.4
    • Component/s: python
    • Labels:
      None

      Description

      The __ class calls two methods of the GraphTraversal class that are not present in that class, namely: the constructor __() and start()

      >>> __.__()
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "C:\Program Files\Python35\Lib\site-packages\gremlin_python\process\graph_traversal.py", line 401, in __
          return GraphTraversal(None, None, Bytecode()).__(*args)
      TypeError: 'GraphTraversal' object is not callable
      
      >>> __.start()
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "C:\Program Files\Python35\Lib\site-packages\gremlin_python\process\graph_traversal.py", line 623, in start
          return GraphTraversal(None, None, Bytecode()).start(*args)
      TypeError: 'GraphTraversal' object is not callable
      

      This can be easily fixed by excluding those two methods in the GraphTraversalSourceGenerator. I will create a pull request for that.

        Attachments

          Activity

            People

            • Assignee:
              okram Marko A. Rodriguez
              Reporter:
              Florian Hockmann Florian Hockmann

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment