You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Tom Kolanko (Jira)" <ji...@apache.org> on 2022/09/19 19:25:00 UTC
[jira] [Created] (TINKERPOP-2801) Incorrect deprecation notice on gremlin-python
Tom Kolanko created TINKERPOP-2801:
--------------------------------------
Summary: 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
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_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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)