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

AttributeError: module 'pexpect' has no attribute 'spawn' #651

Closed
yasaminLG opened this issue Jun 29, 2020 · 2 comments
Closed

AttributeError: module 'pexpect' has no attribute 'spawn' #651

yasaminLG opened this issue Jun 29, 2020 · 2 comments

Comments

@yasaminLG
Copy link

i'm practicing some codes on Spyder(python 3.7) and when I do pexpect.spawn('ping -c 7 localhost'), I get the above error.

Does anyone know how to fix this?

@Red-M
Copy link
Member

Red-M commented Jun 29, 2020

Please see #567 and #166.

@Wleroy280
Copy link

C:\Users\willy\PycharmProjects\TryExcept\venv\Scripts\python.exe C:/Users/willy/PycharmProjects/TryExcept/main.py
Traceback (most recent call last):
File "C:\Users\willy\PycharmProjects\TryExcept\main.py", line 51, in
main()
File "C:\Users\willy\PycharmProjects\TryExcept\main.py", line 46, in main
child = connect(user, host, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\willy\PycharmProjects\TryExcept\main.py", line 18, in connect
child = pexpect.spawn(connStr)
^^^^^^^^^^^^^
AttributeError: module 'pexpect' has no attribute 'spawn'

Process finished with exit code 1

@Red-M Red-M closed this as completed Apr 25, 2023
@Red-M Red-M closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2023
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

3 participants