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


Groups > comp.lang.python > #86209 > unrolled thread

Re: bufsize must be an integer in subprocess.Popen

Started byINADA Naoki <songofacandy@gmail.com>
First post2015-02-23 21:17 +0900
Last post2015-02-23 21:17 +0900
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: bufsize must be an integer in subprocess.Popen INADA Naoki <songofacandy@gmail.com> - 2015-02-23 21:17 +0900

#86209 — Re: bufsize must be an integer in subprocess.Popen

FromINADA Naoki <songofacandy@gmail.com>
Date2015-02-23 21:17 +0900
SubjectRe: bufsize must be an integer in subprocess.Popen
Message-ID<mailman.19064.1424693900.18130.python-list@python.org>
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>

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web