mirror of
https://github.com/clearml/clearml-session
synced 2025-01-31 02:46:56 +00:00
Use wexpect_venv instead of wexpect due to https://github.com/raczben/wexpect/issues/26#issuecomment-1574339194
This commit is contained in:
parent
d0c040dc25
commit
c5242d5470
@ -14,18 +14,7 @@ from time import time, sleep
|
|||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
import msvcrt # noqa
|
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
|
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:
|
else:
|
||||||
import select # noqa
|
import select # noqa
|
||||||
import pexpect # noqa
|
import pexpect # noqa
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
clearml >= 1.1.5
|
clearml >= 1.1.5
|
||||||
pexpect ; sys_platform != 'win32'
|
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
|
pillow>=10.0.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
||||||
|
Loading…
Reference in New Issue
Block a user