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

Keyword "range" overlap with Gremlin-Python and Python3

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 3.4.7
    • Fix Version/s: None
    • Component/s: python
    • Labels:
      None
    • Environment:
      Environment: Ubuntu 18.04.3 LTS VM

      Description

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

       

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

      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

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jmkello Justin Kellogg

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Issue deployment