WindowsError: [Error 2] The system cannot find the file specified on Win32
Issue #14
invalid
Subj
p = sarge.get_both(command)
File "C:\Python27\lib\site-packages\sarge\__init__.py", line 1392, in get_both
p = capture_both(cmd, **kwargs)
File "C:\Python27\lib\site-packages\sarge\__init__.py", line 1365, in capture_both
return run(cmd, **kwargs)
File "C:\Python27\lib\site-packages\sarge\__init__.py", line 1336, in run
p.run(input=input, async=async)
File "C:\Python27\lib\site-packages\sarge\__init__.py", line 967, in run
self.run_node(self.tree, input=input, async=async)
File "C:\Python27\lib\site-packages\sarge\__init__.py", line 1055, in run_node
result = getattr(self, method)(node, input, async)
File "C:\Python27\lib\site-packages\sarge\__init__.py", line 1201, in run_command_node
node.cmd.run(input=input, async=async)
File "C:\Python27\lib\site-packages\sarge\__init__.py", line 593, in run
self.process = p = Popen(self.args, **self.kwargs)
File "C:\Python27\lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 893, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Comments (3)
-
repo owner -
reporter What was the command you passed in?
just test command "mkdir test"
Which version of sarge are you using?
latest from this hg repo
Have you looked at this section of the documentation?
No.
-
repo owner - changed status to invalid
mkdir
,rmdir
are not separate executables that can be executed throughsubprocess
(and hencesarge
), but built-in commands processed bycmd.exe
. - Log in to comment
What was the command you passed in? Which version of
sarge
are you using? Have you looked at this section of the documentation?