Issue in using "subprocess.Popen" for parsing the command output
With the help of Mrab Inputs, I tried Even with "return
stdout.strip().decode("utf-8")", it still seems to be an issue, I am using
python 3.6, is this causing a issue?
printing retcode!!!!!!!!!! 0
Traceback (most recent call last):
line 37, in <module>
main("Apartment 18", "40672958689850014685")
line 34, in main
AttributeError: 'str' object has no attribute 'decode'
Process finished with exit code 1
Many Thanks in advance
On Sun, Nov 25, 2018 at 11:57 PM Karsten Hilbert <Karsten.Hilbert at gmx.net>
> > Even only with "*proc.decode("utf-8")"* in the above code still it seems
> > throw the error
> No it does not. It throws the same TYPE of error due to the same
> SORT of mistake you made.
> You need to read carefully and try to think about what you read.