bufsize must be an integer in subprocess.Popen
Robert Clove
cloverobert at gmail.com
Mon Feb 23 07:13:46 EST 2015
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?
More information about the Python-list
mailing list