[Errno 2] No such file or directory:
joseph pareti
joepareti54 at gmail.com
Wed Jul 28 12:09:15 EDT 2021
The following code fails as shown in the title:
*import subprocesscmd = 'ls -l
/media/joepareti54/Elements/x/finance-2020/AI/Listen_attend_spell/VCTK-Corpus/wav48
| awk "{print $9 }"'process = subprocess.Popen([cmd],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)stdout, stderr =
process.communicate()print('stdout ',stdout)print('stderr ',stderr)*
----
Traceback (most recent call last):
File "PreProcess_1a.py", line 3, in <module>
process = subprocess.Popen([cmd], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
File "/home/joepareti54/anaconda3/lib/python3.8/subprocess.py", line 854,
in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/joepareti54/anaconda3/lib/python3.8/subprocess.py", line
1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ls -l
/media/joepareti54/Elements/x/finance-2020/AI/Listen_attend_spell/VCTK-Corpus/wav48
| awk "{print $9
--
Regards,
Joseph Pareti - Artificial Intelligence consultant
Joseph Pareti's AI Consulting Services
https://www.joepareti54-ai.com/
cell +49 1520 1600 209
cell +39 339 797 0644
More information about the Python-list
mailing list