Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'NoneType' object has no attribute 'terminate' #34

Open
Heegreis opened this issue Mar 15, 2024 · 1 comment
Open

Error: 'NoneType' object has no attribute 'terminate' #34

Heegreis opened this issue Mar 15, 2024 · 1 comment

Comments

@Heegreis
Copy link

Heegreis commented Mar 15, 2024

When the version of clearml-session is between 0.11.0~0.13.0, I got the error same as the title after starting SSH tunnel.
My OS is Windows 11.

According the release log Release PyPI v0.11.0 · allegroai/clearml-session, I tried to edit the code of clearml-session:

if sys.platform == 'win32':
    import msvcrt  # noqa
    import wexpect_venv as pexpect

to

if sys.platform == 'win32':
    import msvcrt  # noqa
    import wexpect as pexpect

Then it solved the error.

Following is my relatied package version:
wexpect 4.0.0
wexpect-venv 4.0.2

@charlienewey-odin
Copy link

Can confirm this, some users are experiencing this at my org too.

Appears to be caused by this line:

child.terminate(force=True)

Suggests to me that pexpect is throwing an exception here as that is the only line that would cause child to be None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants