WindowsError: [Error 2] The system cannot find the file specified on Win32

Issue #14 invalid
Alexey Ivanov created an issue

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)

  1. Alexey Ivanov 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.

  2. Vinay Sajip repo owner

    mkdir, rmdir are not separate executables that can be executed through subprocess (and hence sarge), but built-in commands processed by cmd.exe.

  3. Log in to comment