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

wexpect.spawn(echo=False) is not work and setecho(False) is raise the "AttributeError: 'SpawnPipe' object has no attribute 'setecho'" exception. #64

Open
nhtha opened this issue Apr 4, 2024 · 0 comments

Comments

@nhtha
Copy link

nhtha commented Apr 4, 2024

Dear experts,
I'm starting to use wexpect to interact with putty's plink.exe. but I'm facing the following issue with echo:

Describe the bug
wexpect.spawn(echo=False) is not work and setecho(False) is raise the "AttributeError: 'SpawnPipe' object has no attribute 'setecho'" exception.

To Reproduce
Steps to reproduce the behavior:
ssh = wexpect.spawn(command='plink.exe', timeout=60, maxread=99999, echo=False)
ssh.setecho(False)

Expected behavior
Texts were sent by sendline() are not include in the ssh.before.

Screenshots
image

Environment:

  • [windows version] Windows 11 Pro for Workstation 23H2
  • [Python version] 3.10.8
  • [wexpect version] 4.0
  • [putty plink version] Release 0.80

Please help me to identify and solve this issue.
Best regards,
Ha Nguyen

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

1 participant