This commit is contained in:
allegroai 2023-12-07 16:07:36 +02:00
parent d0c040dc25
commit c5242d5470
2 changed files with 2 additions and 13 deletions

View File

@ -14,18 +14,7 @@ from time import time, sleep
if sys.platform == 'win32':
import msvcrt # noqa
import wexpect as pexpect # noqa
if sys.prefix != sys.base_prefix:
# running in venv
from clearml.utilities.version import Version
if Version(pexpect.__version__) < Version("4.0.1"):
# Wexpect issue https://github.com/raczben/wexpect/issues/26#issuecomment-1574339194
try:
import wexpect_venv as pexpect
except ImportError:
print("WARNING: wexpect_venv is required to connect via SSH when running in a Windows virtualenv."
" Please install using 'pip install wexpect_venv' in this virtual environment")
else:
import select # noqa
import pexpect # noqa

View File

@ -1,4 +1,4 @@
clearml >= 1.1.5
pexpect ; sys_platform != 'win32'
wexpect ; sys_platform == 'win32'
wexpect_venv ; sys_platform == 'win32'
pillow>=10.0.1 # not directly required, pinned by Snyk to avoid a vulnerability