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 2016/12/07 17:56:58 UTC

[jira] [Closed] (TINKERPOP-1576) gremlin-python calls non-existent methods

     [ https://issues.apache.org/jira/browse/TINKERPOP-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stephen mallette closed TINKERPOP-1576.
---------------------------------------
       Resolution: Fixed
         Assignee: Marko A. Rodriguez
    Fix Version/s: 3.2.4

> gremlin-python calls non-existent methods
> -----------------------------------------
>
>                 Key: TINKERPOP-1576
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1576
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: language-variant
>    Affects Versions: 3.2.2, 3.2.3
>            Reporter: Florian Hockmann
>            Assignee: Marko A. Rodriguez
>            Priority: Trivial
>             Fix For: 3.2.4
>
>
> The {{\_\_}} class calls two methods of the {{GraphTraversal}} class that are not present in that class, namely: the constructor {{__()}} and {{start()}}
> {code}
> >>> __.__()
> 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
> {code}
> {code}
> >>> __.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
> {code}
> This can be easily fixed by excluding those two methods in the {{GraphTraversalSourceGenerator}}. I will create a pull request for that.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)