[issue43209] system cannot find the file specified in subprocess.py

2021-02-23 Thread Josh Rosenberg


Change by Josh Rosenberg :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43209] system cannot find the file specified in subprocess.py

2021-02-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Steve, should this be closed as 'not a bug'?

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43209] system cannot find the file specified in subprocess.py

2021-02-12 Thread Steve Dower


Steve Dower  added the comment:

This line won't work on Windows: shell.run("rm -rf .cache".split(), 
cwd=repository)

You should probably use shutil.rmtree(".cache") instead if you want it 
to be cross platform.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43209] system cannot find the file specified in subprocess.py

2021-02-12 Thread robert j richardson


New submission from robert j richardson :

When using >python synth.py in the directory 
google-api-java-client-services-master
python returns:
synthtool > Cloning 
https://github.com/googleapis/discovery-artifact-manager.git.
synthtool > Cleaning output directory.
Traceback (most recent call last):
  File "D:\google-api-java-client-services-master\synth.py", line 47, in 

shell.run("rm -rf .cache".split(), cwd=repository)
  File 
"C:\Users\rober\AppData\Local\Programs\Python\Python39\lib\site-packages\synthtool\shell.py",
 line 27, in run
return subprocess.run(
  File 
"C:\Users\rober\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 
501, in run
with Popen(*popenargs, **kwargs) as process:
  File 
"C:\Users\rober\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 
947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
  File 
"C:\Users\rober\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 
1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

--
components: Windows
messages: 386871
nosy: paul.moore, robertjrichardson, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: system cannot find the file specified in subprocess.py
type: behavior
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com