Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108650
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Pavlos Parissis <pavlos.parissis@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: intermittent ValueErrors from subprocess |
| Date | Mon, 16 May 2016 01:17:41 +0200 |
| Lines | 95 |
| Message-ID | <mailman.7.1463354266.19823.python-list@python.org> (permalink) |
| References | <57389A9D.1010205@gmail.com> <CAPTjJmp1H99HKmEarskE1b-ia0=KFDBTpfU+cWt6vVFeJtBHZg@mail.gmail.com> <5738F8E2.1030403@gmail.com> <CAPTjJmrNLFnvWOr=0D=WT3FJuZ1btFuLsxxrRaAF5M2D7GYtXg@mail.gmail.com> <57390395.8070005@gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="W24aAP5878TnVX0qEU4P5pv4J0DQd1WB2" |
| X-Trace | news.uni-berlin.de y6A7piu2q7fVTBkbui3P9ApgYcekB21eC53XmNZ40fdw== |
| Return-Path | <pavlos.parissis@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'cpython': 0.05; 'that?': 0.05; 'apis': 0.07; 'converts': 0.07; 'executed': 0.07; 'skip:/ 10': 0.07; 'mess': 0.09; 'messing': 0.09; 'url:github': 0.09; 'exception': 0.13; '12:59': 0.16; '2016': 0.16; "can't.": 0.16; 'descriptor.': 0.16; 'descriptors,': 0.16; 'did,': 0.16; 'filename:fname piece:signature': 0.16; 'received:192.168.0.103': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'so;': 0.16; 'sudo': 0.16; 'traceback.': 0.16; 'wrote:': 0.16; 'integer': 0.18; '>>>': 0.20; 'trace': 0.22; 'am,': 0.23; '(you': 0.23; 'slightly': 0.23; 'header:In-Reply- To:1': 0.24; 'mon,': 0.24; 'header:User-Agent:1': 0.26; 'chris': 0.26; 'least': 0.27; 'occurred': 0.29; 'code': 0.30; 'post': 0.31; 'problem': 0.33; 'usually': 0.33; 'message-id:@gmail.com': 0.34; 'file': 0.34; 'running': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'instance': 0.35; 'level': 0.35; 'received:74.125.82': 0.35; 'problem.': 0.35; 'lines': 0.36; 'possible': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'thanks': 0.37; 'sources': 0.37; 'times.': 0.38; 'several': 0.38; 'mean': 0.38; 'subject:from': 0.39; "didn't": 0.39; 'unable': 0.39; 'received:192': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'some': 0.40; 'easy': 0.60; 'your': 0.60; 'clients': 0.61; 'worth': 0.67; 'click': 0.76; 'chrisa': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=WN7h+VvjWhoK+Npdn57Gp3QYEDr1+mHOV1nLkm6CqQ4=; b=hj6hczvTfLK5JxIIk8T5Hr8tZSnd1FzSSBukxZ01scH2mZDHiTeF+I4k78RgKY+LpM ZdENrBwaS+yPYBSSUEDjSHo2zOrpuVFFuGYrYx0wmAarPeHi4mjnD0KGnUAsPR8lHaeC 1s8izjHGlK/0tB8DHri2w9wzWPu6xDxUrIeZBw407algU2WcQdily20Iciu00DGCYrtq pLnCUKsmJ3zoldL9bERTeqwWnqDs+cdgNOnrFN/KVkwkp6XstHp9W7hyJb2cwbWn33H4 xXfSXgtJ7QX5w4HxB71ByxVKEE9dKuEjqN3cB3+ncz1h9q7+IatyBd3PL1oze+6HEo2p PfFg== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=WN7h+VvjWhoK+Npdn57Gp3QYEDr1+mHOV1nLkm6CqQ4=; b=k7Pw1/RvBGJmxstWuZQoYoGO0k3EEc6RkSRSGDsLGHERKgP1WvSX1NolqQLFIw1v8k /PMk9v+e4JZc85n6UaZc0qPHI0yyNs44SiDLfJOvjix363A8vRqHgyHFftsiueV736Qe ZecuFCHbAPDi/fsOw7tGk3U3vJx72bMjaHMcuseRmJum2YLR3XrCQbh5tIRKXM7xJjuq l7G2agBlvYlGjdtWkyYSiYfTGl8KjDcgWapvEA8nbpsqZP7VboeKAXlpe4Pz34PwPano qFWnZbnriBim/hL1udnIi6WbzgyteTW952kNGfNWAY0iG6mVIvZGcrMzaouKKdrfC2M/ l3Mg== |
| X-Gm-Message-State | AOPr4FWwtvrbabDkiYbx/wJDX4Mzk3cMwgQLACIaasP5ql4n/SUgFcypDmfTpYlZxUr9iA== |
| X-Received | by 10.194.51.8 with SMTP id g8mr26196002wjo.15.1463354264438; Sun, 15 May 2016 16:17:44 -0700 (PDT) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0 |
| In-Reply-To | <CAPTjJmrNLFnvWOr=0D=WT3FJuZ1btFuLsxxrRaAF5M2D7GYtXg@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| 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 | <http://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 | <57390395.8070005@gmail.com> |
| X-Mailman-Original-References | <57389A9D.1010205@gmail.com> <CAPTjJmp1H99HKmEarskE1b-ia0=KFDBTpfU+cWt6vVFeJtBHZg@mail.gmail.com> <5738F8E2.1030403@gmail.com> <CAPTjJmrNLFnvWOr=0D=WT3FJuZ1btFuLsxxrRaAF5M2D7GYtXg@mail.gmail.com> |
| Xref | csiph.com comp.lang.python:108650 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On 16/05/2016 12:59 πμ, Chris Angelico wrote: > On Mon, May 16, 2016 at 8:32 AM, Pavlos Parissis > <pavlos.parissis@gmail.com> wrote: >>> Searching the CPython sources for that exception shows one hit: >>> selectors.py, where it converts a file object to an integer file >>> descriptor. (You could have helped out by showing us the full >>> traceback.) >> >> I did, https://gist.github.com/unixsurfer/67db620d87f667423f6f6e3a04e0bff5 > > Ah. I didn't click that link in your original post - didn't know it > was the traceback. Better would have been to at least say so; best > would have been to include it inline. > I don't usually include traces as they have long lines and several e-mail clients mess with them in a way that makes the trace unreadable. >>> Is it possible you were running out of file descriptors, >>> or in some other way unable to create the pipe? >> >> I don't think as I see right now only 8 FDs: >> >> sudo ls -1 /proc/22706/fd|wc >> 8 8 16 >> > > If you can recreate the problem consistently, I can't. This is my main problem. This code has been executed ~100K and that exception has occurred only ~5 times. > it would be worth > messing around with slightly lower level APIs - using subprocess.Popen > rather than check_output, for instance - and see what you can do > without the pipes. What do you mean by that? > Somewhere, something's failing, and it's not easy > to see what. > > ChrisA > Thanks once again, Pavlos
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: intermittent ValueErrors from subprocess Pavlos Parissis <pavlos.parissis@gmail.com> - 2016-05-16 01:17 +0200
csiph-web