Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix drop-graph.py for gremlin_python 3.6.0 #210

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

metawilm-aws
Copy link
Contributor

The use of:

edges = g.E().range(p1,p2).id().toList()
vertices = g.V().range(p1,p2).id().toList()

does not work work anymore in Python 3 and gremlin_python 3.6.0:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/home/ec2-user/drop.py", line 190, in edge_fetcher
    edges = g.E().range(p1,p2).id().toList()
TypeError: 'GraphTraversal' object is not callable

Fix is to use:

edges = g.E().range_(p1,p2).id_().toList()
vertices = g.V().range_(p1,p2).id_().toList()

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The use of:

    edges = g.E().range(p1,p2).id().toList()
    vertices = g.V().range(p1,p2).id().toList()

does not work work anymore in Python 3 and gremlin_python 3.6.0:

    Exception in thread Thread-1:
    Traceback (most recent call last):
      File "/home/ec2-user/drop.py", line 190, in edge_fetcher
        edges = g.E().range(p1,p2).id().toList()
    TypeError: 'GraphTraversal' object is not callable

Fix is to use:

    edges = g.E().range_(p1,p2).id_().toList()
    vertices = g.V().range_(p1,p2).id_().toList()
@beebs-systap beebs-systap merged commit 1086074 into awslabs:master Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants