I am trying to execute an external command inpython.
The command arguments , if executed in the shell are as follows:
osmconvert inputfile -b=bbox -o=outputfile
I am trying to call it with subprocess as fowlloows:
import subprocess as sb
inputfile = '/path/to/inputfile'
outputfile = '/path/to/outputfile'
bbox = 13.400102,52.570951,13.61957,52.676858
test = sb.Popen(['osmconvert', inputfile, '-b=', bbox, '-o=',outputfile])
That gives me the error msg : TypeError: execv() arg 2 must contain only strings
Can anyone hint on how to make this work?
Kind regards!
arg 2 must contain only stringsis unclear?