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

Tom Kolanko updated TINKERPOP-2801:
-----------------------------------
    Description: 
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

  was:
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_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


> 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
>            Priority: Minor
>
> 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)

Reply via email to