diff --git a/python/hopsworks/client/__init__.py b/python/hopsworks/client/__init__.py index 19e0778da..4ff5e8248 100644 --- a/python/hopsworks/client/__init__.py +++ b/python/hopsworks/client/__init__.py @@ -16,17 +16,13 @@ from hopsworks_common.client import ( get_instance, - get_python_version, init, - set_python_version, stop, ) __all__ = [ get_instance, - get_python_version, init, - set_python_version, stop, ] diff --git a/python/hopsworks/connection.py b/python/hopsworks/connection.py index 1fe984030..26fc8aed4 100644 --- a/python/hopsworks/connection.py +++ b/python/hopsworks/connection.py @@ -16,14 +16,14 @@ import os import re -import warnings import sys +import warnings -from requests.exceptions import ConnectionError - -from hopsworks.decorators import connected, not_connected from hopsworks import client, version from hopsworks.core import project_api, secret_api, variable_api +from hopsworks.decorators import connected, not_connected +from requests.exceptions import ConnectionError + HOPSWORKS_PORT_DEFAULT = 443 HOSTNAME_VERIFICATION_DEFAULT = True @@ -214,12 +214,6 @@ def _check_compatibility(self): ) sys.stderr.flush() - def _set_client_variables(self): - python_version = self._variable_api.get_variable( - "docker_base_image_python_version" - ) - client.set_python_version(python_version) - @not_connected def connect(self): """Instantiate the connection. @@ -270,7 +264,6 @@ def connect(self): ) self._check_compatibility() - self._set_client_variables() def close(self): """Close a connection gracefully. diff --git a/python/hopsworks_common/client/__init__.py b/python/hopsworks_common/client/__init__.py index 16b995b2d..e474c0b9a 100644 --- a/python/hopsworks_common/client/__init__.py +++ b/python/hopsworks_common/client/__init__.py @@ -18,7 +18,6 @@ _client = None -_python_version = None def init( @@ -56,16 +55,6 @@ def get_instance(): raise Exception("Couldn't find client. Try reconnecting to Hopsworks.") -def get_python_version(): - global _python_version - return _python_version - - -def set_python_version(python_version): - global _python_version - _python_version = python_version - - def stop(): global _client if _client: