mirror of
https://github.com/clearml/clearml-session
synced 2025-01-31 10:56:55 +00:00
Better message on "Enter"
This commit is contained in:
parent
b1d81ec25e
commit
d0c040dc25
@ -15,6 +15,17 @@ from time import time, sleep
|
|||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
import msvcrt # noqa
|
import msvcrt # noqa
|
||||||
import wexpect as pexpect # 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:
|
else:
|
||||||
import select # noqa
|
import select # noqa
|
||||||
import pexpect # noqa
|
import pexpect # noqa
|
||||||
|
Loading…
Reference in New Issue
Block a user