Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197151
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Tim Johnson <thjmmj15@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: subprocess.Popen does not launch audacity |
| Date | Fri, 10 Jan 2025 12:00:02 -0900 |
| Lines | 38 |
| Message-ID | <mailman.58.1736542811.2912.python-list@python.org> (permalink) |
| References | <735b7965-c16c-45a7-a2b8-d9ff1adc21ba@gmail.com> <616dcf1e-4f82-48ed-851c-fe5342f42f40@mrabarnett.plus.com> <d40046bc-57c7-436e-b9a2-49af00cc77d7@gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de TC/4nk2myWaSTqEQQOEdkgbjuVCZ4uPilib4wFo5Mx0g== |
| Cancel-Lock | sha1:2jAUQ9fn+B2yVpK1Fz+n/n8k34o= sha256:2qqbBHVqVKKq/h3ES45YeyIDoKSZC6PaG6XIdnwfGq0= |
| Return-Path | <thjmmj15@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| Authentication-Results | mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=Q9XY1g0R; dkim-adsp=pass; dkim-atps=neutral |
| X-Spam-Status | OK 0.035 |
| X-Spam-Evidence | '*H*': 0.93; '*S*': 0.00; 'argument': 0.04; 'skip:\xc2 30': 0.07; 'string': 0.07; 'subject:not': 0.09; 'unsure': 0.09; 'values.': 0.09; 'insufficient': 0.16; 'pertinent': 0.16; 'script.': 0.16; 'subject:does': 0.16; 'wrote:': 0.16; 'python': 0.16; 'message-id:@gmail.com': 0.18; 'to:addr:python-list': 0.20; 'maybe': 0.22; 'problem,': 0.22; 'command': 0.23; 'code': 0.23; 'programming': 0.25; 'function': 0.27; 'header:User-Agent:1': 0.30; "doesn't": 0.32; 'guess': 0.32; 'python-list': 0.32; 'but': 0.32; 'received:192.168.1': 0.32; 'there': 0.33; 'path': 0.33; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34; 'printing': 0.34; 'from:addr:gmail.com': 0.34; 'could': 0.37; 'received:192.168': 0.37; 'list': 0.39; 'thanks': 0.39; 'prompt': 0.39; 'still': 0.40; 'try': 0.40; 'should': 0.40; 'ten': 0.61; 'skip:\xc2 10': 0.62; 'great': 0.62; 'shows': 0.67; 'launches': 0.69; 'below': 0.69; 'essential': 0.70; 'causing': 0.75; '8bit%:100': 0.76; 'choice': 0.76; 'see,': 0.76; 'eliminate': 0.84; 'hidden': 0.95 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736542804; x=1737147604; darn=python.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=75i6P/Bst8RIECMcJhMVNtqh9Aro+Kc/kjR30uUMBxc=; b=Q9XY1g0RKj2JBT9jfRrzhyisI+EuCBGSPViarn6RZ95P69fTnK7EwdhWXDbtNbExLL y3oY7fJRRW6gBOjohRLaw8+UZ60CnuYFlULpR9N47ADcMz8vji1Arjk01LbNSJHr1TLf zBgdOOprTy2WFOfI55BdM3cfJDgbv0b0HoxAjvtpzzeuy5B415zxaio3IPURQhrw0uk0 H3jMrKWFABrYsmENdSSGYP2n1GOxDEa7X3OEng0Of3C+dIjWeuYVkiImXmcnLzoGuD/P 98IDcRHXJCbvm2XgpqWLLI3uoxhvl04fmX5RNsrmZboeq+I1q/1DeRltP1HgEZqsjPO/ NazA== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736542804; x=1737147604; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=75i6P/Bst8RIECMcJhMVNtqh9Aro+Kc/kjR30uUMBxc=; b=ejQXWg6iwO1Fjp0+2mifUu3LUvFt55jIBRBeLby53QxDpqJbE0SmPZDgBH0gdhDbDz 1RBr3tSeffbJFFjEuh5Q3ASGAYIzUpPdgHWC0ATmghmFRvXlx4hWA61RX5OMyocsMCMK 6rY1hzMKy2+NNc/V7hZg1xNqmtkS9dIhDuStVoNTRlLSZ3fvVzjn5WNJK8NrtEd5hAJr di6CSXEsSknx96KmHjGysG3WCghBxgyqT/nK+0UACG13EeCpEkKh2GqIGUunjlTiqfTF 1/S+OxprY926aj/+YoJCVhrK9yupFu+tiqUmiYYEi8np6rDR4VF3b1L5xTuyRJ+griCe JTJQ== |
| X-Gm-Message-State | AOJu0YyM0J0KULyjb0imGc3us9UBF3/KXkxB8ShuCFtADhAUYJx0U1BK XqPYNiEsMeSC2UFw4A3kst37MtX612Q2yV5knCL1J7lAiMYA/hd38fnVmQ== |
| X-Gm-Gg | ASbGncs4lyTrKYLFb8G7zYiBRk8tTPqFs6GwRE0oQLETH/uolpDsNm+EeCe4+JYtaxM BZfHZZUcPJ7MnBmOjt+0lHtT6RAcc7ugLZOFk5Gn/T2zcx4r8JksdShU5YVMdsVvurGaV+1e/Ix G0JD+4epSimHySUAPK6veSsAAzKCQrUOWBMBdEiC/FNwHC0QK5nlUY/0s7rktcJQSCosptRZRtF Cs9mYzSSWwisGLYrgaNf3+NgRFgyV8po7wZt/kTUsitWFJG3OaxkysxpbG1EPQcV1bA3YYjMO01 |
| X-Google-Smtp-Source | AGHT+IF2pLlOtz8ixu9Xk1NnlLtzmcN7S/SOp9T3Swheguq5vvwf7lQTu38GMS+xVL7YaFZtwfBN0A== |
| X-Received | by 2002:a17:903:1248:b0:216:5e6e:68cb with SMTP id d9443c01a7336-21a83f56bd2mr179437885ad.16.1736542803665; Fri, 10 Jan 2025 13:00:03 -0800 (PST) |
| User-Agent | Mozilla Thunderbird |
| Content-Language | en-US |
| In-Reply-To | <616dcf1e-4f82-48ed-851c-fe5342f42f40@mrabarnett.plus.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.39 |
| 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 | <d40046bc-57c7-436e-b9a2-49af00cc77d7@gmail.com> |
| X-Mailman-Original-References | <735b7965-c16c-45a7-a2b8-d9ff1adc21ba@gmail.com> <616dcf1e-4f82-48ed-851c-fe5342f42f40@mrabarnett.plus.com> |
| Xref | csiph.com comp.lang.python:197151 |
Show key headers only | View raw
On 1/10/25 11:32, MRAB via Python-list wrote: >> ,,, snipped >> Below is the pertinent code: >> >> Popen(choice, stdout=PIPE, stderr=PIPE, >> stdin=PIPE, close_fds=True) >> >> My guess is my argument list is either insufficient or an argument is >> causing the problem, but am unsure of which. >> >> I have been retired from python programming for ten years, and am pretty >> rusty, but it is still fun. There are plenty >> >> of other ways to successfully launch audacity but it would be great to >> make it work from this script. >> > > What is the value of 'choice'? > > You could try printing out the value of 'choice' for one that works > and the one that doesn't and then try them again interactively from > the Python prompt with the given values. That should eliminate all but > the essential code for easier debugging. choice is /usr/local/bin/audacity, which is the correct path for audacity on my system. As far as I can see, that string has no hidden bytes. Invoking /usr/local/bin/audacity from the command line launches audacity and so does choosing with dmenu_run. which -a audacity shows only that item. Maybe I need to isolate the function call and start stripping out parameters. I should have time to do that later today. Thanks
Back to comp.lang.python | Previous | Next | Find similar
Re: subprocess.Popen does not launch audacity Tim Johnson <thjmmj15@gmail.com> - 2025-01-10 12:00 -0900
csiph-web