You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Justin Kellogg (Jira)" <ji...@apache.org> on 2020/06/18 18:56:00 UTC

[jira] [Created] (TINKERPOP-2386) Keyword "range" overlap with Gremlin-Python and Python3

Justin Kellogg created TINKERPOP-2386:
-----------------------------------------

             Summary: Keyword "range" overlap with Gremlin-Python and Python3
                 Key: TINKERPOP-2386
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2386
             Project: TinkerPop
          Issue Type: Bug
          Components: python
    Affects Versions: 3.4.7
         Environment: Environment: Ubuntu 18.04.3 LTS VM
            Reporter: Justin Kellogg


Using python's range in for loops results in a gremlin error.   Example:

 

{{ for x in range(0,5):}}
{{    print(x)}}

If I have gremlin-python imported, I get this error:

{{Traceback (most recent call last):}}
{{ File "clusters.py", line 133, in <module>}}
{{ Run('localhost',8182)}}
{{ File "clusters.py", line 123, in Run}}
{{ for x in range(0,5):}}
{{ File "/home/developer/.local/lib/python3.6/site-packages/gremlin_python/process/traversal.py", line 48, in __next__}}
{{ self.traversal_strategies.apply_strategies(self)}}
{{AttributeError: 'NoneType' object has no attribute 'apply_strategies'}}

 

Python Version: 3.6.9

 



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