On 4/30/2016 3:27 PM, Alex Kleider wrote:
On 2016-04-30 11:51, Jason N. via Tutor wrote:
Hello,
I found this simple script online but when I execute it I get the
following error: "TypeError: 'list' object is not callable"
Here is the code sample:import subprocess
ls_output= subprocess.check_output(['dir'])
It works on my system: Ubuntu 14.04LTS
Works on my Windows 10 also.
Always post the traceback. The problem must lie in check_output as there
is nothing in your code that could raise that exception.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor