Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'subject:skip:s 10': 0.07; 'sys': 0.07; '__init__': 0.09; 'arguments': 0.09; 'bufsize': 0.16; 'skip:p 90': 0.16; 'typeerror:': 0.16; 'all,': 0.19; 'import': 0.22; 'to:name:python- list@python.org': 0.22; 'error': 0.23; 'integer': 0.24; 'script': 0.25; 'logging': 0.26; 'skip:" 30': 0.26; 'raise': 0.29; 'message- id:@mail.gmail.com': 0.30; 'getting': 0.31; 'file': 0.32; 'linux': 0.33; 'running': 0.33; 'skip:# 10': 0.33; 'received:google.com': 0.35; 'located': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'tell': 0.60; 'abc': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=5f5e0WcvY0aWSq89SnUX3B5mxK1SHIN2sVYcyrg7wL4=; b=CBvqku/ya6ooryFQX+evbkyQDfRTOOgvmL/tqMo13LHCGSQ3IDSwmuJkb8T4ePLTG5 d33UDXqCkqX7QNrbYOE/SsPF8+Mj3FPzEhkXGAhydlfFEMPa+v0howUBLbHWygynFV+w r4UMlFTGCRKAn+nCQm4PBEsWTjbZo8WKaZDtcqnj0jZsyO8fNkY96WqJkqhEits9AP0p XPfaQzo+tXrYiBdHdhelnXrVFlTQnXTE9P1DtzCJdpROSu2dnCuh6JJlo0pUuf/Dqc/g N/0sdpPm85qvSXQWsagdyExyYmhYUkp8kEuZOW2DdaAu1+YvAdaEqsMvmvJ1THSg89tv N8NA== MIME-Version: 1.0 X-Received: by 10.60.59.97 with SMTP id y1mr7264222oeq.17.1424693626243; Mon, 23 Feb 2015 04:13:46 -0800 (PST) Date: Mon, 23 Feb 2015 19:13:46 +0700 Subject: bufsize must be an integer in subprocess.Popen From: Robert Clove To: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424693628 news.xs4all.nl 2878 [2001:888:2000:d::a6]:47807 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3451 X-Received-Body-CRC: 1397045759 Xref: csiph.com comp.lang.python:86208 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?