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

Incorrect deprecation notice on gremlin-python

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6.1
    • 3.7.0, 3.6.2
    • python
    • None

    Description

      Here is a simple testcase showing the warning:

      from gremlin_python.process.anonymous_traversal import traversal
      from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
      import warnings
      warnings.simplefilter('always', DeprecationWarning)
      
      gremlin_host = "ws://localhost:8182/gremlin"
      gremlin_user = "graph"
      gremlin_password = "graph"
      traversal="g"
      
      connection = DriverRemoteConnection(gremlin_host, traversal, username=gremlin_user, password=gremlin_password )
      g = traversal().with_remote(connection)
      
      g.V().count().next()
      

      I see

      /miniconda3/envs/graphtest/lib/python3.9/site-packages/gremlin_python/process/graph_traversal.py:144: DeprecationWarning: gremlin_python.process.GraphTraversalSource.withRemote will be replaced by gremlin_python.process.GraphTraversalSource.with_remote.
        warnings.warn(
      

      when running the code. I am using with_remote though

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            tkolanko Tom Kolanko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: