Skip to content

Commit 0feac9f

Browse files
yeesiancopybara-github
authored andcommitted
chore: Add a warning when the python version is inconsistent with the sys.version_info.
PiperOrigin-RevId: 633963999
1 parent f9011e0 commit 0feac9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vertexai/reasoning_engines/_reasoning_engines.py

+6
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ def create(
178178
f"Unsupported python version: {sys_version}. ReasoningEngine "
179179
f"only supports {_SUPPORTED_PYTHON_VERSIONS} at the moment."
180180
)
181+
if sys_version != f"{sys.version_info.major}.{sys.version_info.minor}":
182+
_LOGGER.warning(
183+
f"{sys_version=} is inconsistent with {sys.version_info=}. "
184+
"This might result in issues with deployment, and should only "
185+
"be used as a workaround for advanced cases."
186+
)
181187
sdk_resource = cls.__new__(cls)
182188
base.VertexAiResourceNounWithFutureManager.__init__(
183189
sdk_resource,

0 commit comments

Comments
 (0)