Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If the human brain were so simple that we could understand it, we would be so simple we couldn't.


devel / comp.lang.python / Re: [Errno 2] No such file or directory:

SubjectAuthor
o Re: [Errno 2] No such file or directory:Peter Otten

1
Re: [Errno 2] No such file or directory:

<mailman.279.1627489267.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=14331&group=comp.lang.python#14331

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: __pete...@web.de (Peter Otten)
Newsgroups: comp.lang.python
Subject: Re: [Errno 2] No such file or directory:
Date: Wed, 28 Jul 2021 18:20:58 +0200
Lines: 41
Message-ID: <mailman.279.1627489267.4164.python-list@python.org>
References: <CAN_spzgrVzj5dpOzBdcCc1QZww-vb=NSfVtxaSE3CqcKY3aobg@mail.gmail.com>
<sds058$11g1$1@ciao.gmane.io>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de QF4AKmrb0M8EcG7kb7hNHQmUeWj7SDnngFk14faVJDTw==
Return-Path: <python-python-list@m.gmane-mx.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'traceback': 0.04; '(most':
0.05; 'joseph': 0.05; 'last):': 0.05; 'fails': 0.09; 'message-
id:@ciao.gmane.io': 0.09; 'received:ciao.gmane.io': 0.09;
'received:gmane.io': 0.09; 'received:list': 0.09; '18:09,': 0.16;
'from:addr:web.de': 0.16; 'pareti': 0.16; 'received:116.202':
0.16; 'received:116.202.254': 0.16; 'received:116.202.254.214':
0.16; 'skip:/ 80': 0.16; 'subject:directory': 0.16; 'wrote:':
0.16; 'subject:] ': 0.19; 'subject:: [': 0.21; 'skip:_ 10': 0.23;
'subject:file': 0.23; 'to:addr:python-list': 0.23; 'code': 0.24;
'skip:p 30': 0.26; 'header:User-Agent:1': 0.31; 'raise': 0.31;
'header:In-Reply-To:1': 0.33; 'fix': 0.35; 'following': 0.35;
'file': 0.38; 'list': 0.39; "skip:' 20": 0.40; 'skip:e 10': 0.60;
'above': 0.65; 'received:116': 0.71; 'quick': 0.78;
'subject:such': 0.84; 'subject::': 0.89
X-Injected-Via-Gmane: http://gmane.org/
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
In-Reply-To: <CAN_spzgrVzj5dpOzBdcCc1QZww-vb=NSfVtxaSE3CqcKY3aobg@mail.gmail.com>
Content-Language: en-US
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <sds058$11g1$1@ciao.gmane.io>
X-Mailman-Original-References: <CAN_spzgrVzj5dpOzBdcCc1QZww-vb=NSfVtxaSE3CqcKY3aobg@mail.gmail.com>
 by: Peter Otten - Wed, 28 Jul 2021 16:20 UTC

On 28/07/2021 18:09, joseph pareti wrote:
> 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],

As a quick fix try

process = subprocess.Popen(
cmd # no list
shell=True,
... # other args as above
)

> 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
>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor