Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101174

Re: subprocess check_output

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: subprocess check_output
Date Sun, 3 Jan 2016 09:01:45 +1100
Lines 16
Message-ID <mailman.185.1451772113.11925.python-list@python.org> (permalink)
References <CAJYwLU=p_U3V7MfOx3wCH8qkamK0aSHzF1i0g2ZBgTXDgrF03Q@mail.gmail.com> <20151230210227.GA88234@cskk.homeip.net> <CAJYwLUn23Xh5D6Yvn8Atv=vzC6Xk8D3i2SgV8hyvvqiuvofQgg@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de UHyDJH/l69QXDyAN6JWGwQIEEpe9XcnyNlLVDJZZrxew==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.031
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'effect.': 0.09; 'file"': 0.09; 'bug': 0.10; 'python': 0.10; 'jan': 0.11; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; '(in': 0.18; 'shell': 0.18; 'changes': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'suggested': 0.20; 'am,': 0.23; 'forgot': 0.23; 'header:In- Reply-To:1': 0.24; 'command': 0.26; 'message-id:@mail.gmail.com': 0.27; 'turns': 0.27; 'idea': 0.28; 'run': 0.33; 'running': 0.34; 'server': 0.34; 'received:google.com': 0.35; 'problem.': 0.35; 'there': 0.36; 'received:209.85': 0.36; "wasn't": 0.36; 'subject:: ': 0.37; 'two': 0.37; 'received:209.85.213': 0.37; 'thought': 0.37; 'doing': 0.38; 'received:209': 0.38; 'wrong': 0.38; 'why': 0.39; 'test': 0.39; 'still': 0.40; 'save': 0.60; 'your': 0.60; 'spam.': 0.61; 'times': 0.63; 'worth': 0.67; 'chrisa': 0.84; 'heh.': 0.84; 'succeeds': 0.84; 'to:none': 0.91; 'carlos': 0.91; 'smoke': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=gbLCom4mALhQSX1Hl3MNQqwhPB4GWjMGEfU6wLEyUG8=; b=ydu5GNCnpF6X5F85Dy2RjJsQwZS8/xbypfE00Q2Mc26xFKWMfM5w3ngYC0JY1UaV17 AK0t0wNolhh4hXkz5zJ50kFcv4aGwQCCskCcvyuCAT6fbMHZxL3KBD3nO8ZpJbkS14sA rZLjm7SMCFoq+ZjTQLgMV1x7k0R/w9tuXag/xI/ZteUDKRlctpYXFgr8eCCRXdnYllr2 y5sBVysT4igqssylrZfbfQraVHWrGj4gZhfkkI7Z6zi/y06ZSsYOHf7G7E3RQAdb/U8U YHiSQQSXxKCkVOf3A4wUdBftCPFuSCfFezSvCyn77mx+y3av/6CLWSzB/pWp3a+Qn8Aj oc7A==
X-Received by 10.50.66.179 with SMTP id g19mr60647503igt.94.1451772105702; Sat, 02 Jan 2016 14:01:45 -0800 (PST)
In-Reply-To <CAJYwLUn23Xh5D6Yvn8Atv=vzC6Xk8D3i2SgV8hyvvqiuvofQgg@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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>
Xref csiph.com comp.lang.python:101174

Show key headers only | View raw


On Sun, Jan 3, 2016 at 7:39 AM, Carlos Barera <carlos.barera@gmail.com> wrote:
> Turns out it wasn't running against the server I thought it was.
> Apologies for the spam.

Heh. No problem. That's part of why I suggested running it from the
shell. There are two possibilities: either it also fails from the
shell (in which case you've eliminated Python as the problem, and can
concentrate on "why is my command not working"), or it succeeds when
run manually and still fails from Python (in which case you can start
investigating the differences). And every now and then, it's worth
doing a stupid smoke test just to see if your changes are even having
effect. You have no idea how many times a bug investigation has come
down to "whoops, I forgot to save the file" or "whoops, I was in the
wrong directory"...

ChrisA

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: subprocess check_output Chris Angelico <rosuav@gmail.com> - 2016-01-03 09:01 +1100
  Re: subprocess check_output me <self@example.org> - 2016-01-05 11:15 +0000
    Re: subprocess check_output Chris Angelico <rosuav@gmail.com> - 2016-01-05 22:38 +1100
      Re: subprocess check_output me <self@example.org> - 2016-01-07 09:33 +0000
        Re: subprocess check_output Chris Angelico <rosuav@gmail.com> - 2016-01-07 20:54 +1100
          Re: subprocess check_output Marko Rauhamaa <marko@pacujo.net> - 2016-01-07 12:12 +0200
            Re: subprocess check_output Marko Rauhamaa <marko@pacujo.net> - 2016-01-07 12:14 +0200
              Re: subprocess check_output Chris Angelico <rosuav@gmail.com> - 2016-01-07 21:25 +1100

csiph-web