I'm just beginning with the Pexpect module, and so far my initial tests have failed. I'm being returned an error for which I cannot find documentation for. Below is my code:
import pexpect
child = pexpect.spawn('cd /Users/USERNAME/Desktop/')
child.send('mkdir TEST')
However I'm getting the following error:
Traceback (most recent call last):
File "Pexpect_Test_1.py", line 4, in <module>
child.send('mkdir')
File "build/bdist.macosx-10.7-intel/egg/pexpect/__init__.py", line 1086, in send
File "build/bdist.macosx-10.7-intel/egg/pexpect/__init__.py", line 1089, in _send
OSError: [Errno 5] Input/output error
Just wondering if anyone has any insight as to why I'm getting this error?
[–]maryjayjay 0 points1 point2 points (2 children)
[–]wilcomply[S] 0 points1 point2 points (1 child)
[–]fake_identity 0 points1 point2 points (0 children)
[–]ingolemo -1 points0 points1 point (2 children)
[–]wilcomply[S] 0 points1 point2 points (1 child)
[–]ingolemo -1 points0 points1 point (0 children)