stsaz / fmedia

fast audio player/recorder/converter
BSD 2-Clause "Simplified" License
217 stars 21 forks source link

using check_output #75

Closed YannGordon closed 2 years ago

YannGordon commented 2 years ago

Hi when I run

from subprocess import check_output
check_output(["fmedia","--list-dev"])

I met Command '['fmedia', '--list-dev']' returned non-zero exit status 1. But when I run fmedia --list-dev directly in my terminal, it worked fine. Can I know if someone met this before? I tried adding "shell=True" after the bracket, but the output is the same with typing only "fmedia"

YannGordon commented 2 years ago

subprocess.check_output is supported for python 2.7~3.4, subprocess.run is used for python >= 3.5