Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86209
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <songofacandy@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; 'python,': 0.02; 'argument': 0.05; 'skip:` 10': 0.07; 'subject:skip:s 10': 0.07; 'sys': 0.07; 'string': 0.09; '__init__': 0.09; 'arguments': 0.09; 'cc:addr:python-list': 0.11; '23,': 0.16; '9:13': 0.16; 'bufsize': 0.16; 'skip:p 90': 0.16; 'typeerror:': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'skip:p 40': 0.19; 'feb': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'integer': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'logging': 0.26; 'skip:" 30': 0.26; 'header:In-Reply-To:1': 0.27; 'raise': 0.29; 'robert': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'getting': 0.31; 'file': 0.32; 'linux': 0.33; 'url:python': 0.33; 'running': 0.33; 'skip:# 10': 0.33; 'skip:s 30': 0.35; 'received:google.com': 0.35; 'located': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'pm,': 0.38; 'url:mail': 0.40; 'tell': 0.60; 'first': 0.61; 'to:addr:gmail.com': 0.65; '2015': 0.84; 'abc': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=KzAiVrTO8oefY9ZPhel+iBG4F35PaGY/Rgq1CQz44D8=; b=ynytWagW7m7T6UEZJEPOD5+3CA/avwcKSh4SDBXqdDWqdOAMCkoc0e187wKI1ZLxuY 9EiEjGNs5EfHYCHbIdPkRnn93xQjbkWqtM5hzDfHsDSGeh6fFSe+WZ5nN7p3PctNpujl ScXtpo+Yi4OlkG1GLt3T+8s4F6LRHK950/oEbpoymhC1t6QCWZ/almGHOhGrXm3bHoSg R2ai/eCOPfVSd6Ko/sRSXBTFqSLr8hqvf16d2qvB6KNM9VijRsfO9gkQ8YUc9ygBij77 1+8yJwh9NehM3jBQo+xJHRXkYfGGzSTFKW++sKLFtr+FWCa4Gzn4vrdMxglVlWl/5jb1 ztEQ== |
| X-Received | by 10.140.233.78 with SMTP id e75mr23878326qhc.92.1424693898345; Mon, 23 Feb 2015 04:18:18 -0800 (PST) |
| MIME-Version | 1.0 |
| In-Reply-To | <CAEMktPXksS9bVaf-BQMTe5KYOu3SxbiSCWdk78S1yP0zy9DG6Q@mail.gmail.com> |
| References | <CAEMktPXksS9bVaf-BQMTe5KYOu3SxbiSCWdk78S1yP0zy9DG6Q@mail.gmail.com> |
| From | INADA Naoki <songofacandy@gmail.com> |
| Date | Mon, 23 Feb 2015 21:17:57 +0900 |
| Subject | Re: bufsize must be an integer in subprocess.Popen |
| To | Robert Clove <cloverobert@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.19064.1424693900.18130.python-list@python.org> (permalink) |
| Lines | 49 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1424693900 news.xs4all.nl 2876 [2001:888:2000:d::a6]:50494 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 4533 |
| X-Received-Body-CRC | 1023002287 |
| Xref | csiph.com comp.lang.python:86209 |
Show key headers only | View raw
When `shell=True`, the first argument should be string passed to shell.
So you should:
proc1=subprocess.Popen("/root/Desktop/abc.py 64 abc",
shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE)
On Mon, Feb 23, 2015 at 9:13 PM, Robert Clove <cloverobert@gmail.com> wrote:
> Hi All,
>
> I am using the Linux system with python, i am running the following script
>
> #!/usr/bin/python
>
>
>
> import threading
>
> import time
>
> import sys
> import subprocess
> import datetime
> import os
> import time
> import logging
>
>
>
> proc1=subprocess.Popen("/root/Desktop/abc.py","64","abc",shell=True,stdout=subprocess.PIPE,
> stderr=subprocess.PIPE)
>
>
> In this script i am calling the other script named abc.py which is
> located on the desktop with 64 and abc as its arguments
> I am getting the following error
> File "/usr/lib64/python2.6/subprocess.py", line 589, in __init__
> raise TypeError("bufsize must be an integer")
> TypeError: bufsize must be an integer
>
>
> Can you tell me why and whats the sol?
> --
> https://mail.python.org/mailman/listinfo/python-list
--
INADA Naoki <songofacandy@gmail.com>
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: bufsize must be an integer in subprocess.Popen INADA Naoki <songofacandy@gmail.com> - 2015-02-23 21:17 +0900
csiph-web