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 2022/09/22 19:23:00 UTC

[jira] [Closed] (TINKERPOP-2801) Incorrect deprecation notice on gremlin-python

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

Stephen Mallette closed TINKERPOP-2801.
---------------------------------------
    Fix Version/s: 3.7.0
                   3.6.2
         Assignee: Stephen Mallette
       Resolution: Fixed

yeah, {{with__remote}} was accidentally calling the deprecated method fixed here:

https://github.com/apache/tinkerpop/commit/77e566ecb34eb22425c47f82c13b9cedff580f7d

> Incorrect deprecation notice on gremlin-python
> ----------------------------------------------
>
>                 Key: TINKERPOP-2801
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2801
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 3.6.1
>            Reporter: Tom Kolanko
>            Assignee: Stephen Mallette
>            Priority: Minor
>             Fix For: 3.7.0, 3.6.2
>
>
> Here is a simple testcase showing the warning:
> {code:python}
> 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()
> {code}
> I see
> {code:bash}
> /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(
> {code}
> when running the code. I am using with_remote though



--
This message was sent by Atlassian Jira
(v8.20.10#820010)