I tried to use a third-party library with GitHub , but in the process of using it throws an error:

Traceback (most recent call last): File "C:/stream/twitch-recorder.py", line 147, in <module> main(sys.argv[1:]) File "C:/stream/twitch-recorder.py", line 144, in main twitch_recorder.run() File "C:/stream/twitch-recorder.py", line 64, in run self.loopcheck() File "C:/stream/twitch-recorder.py", line 111, in loopcheck subprocess.call(["streamlink", "--twitch-oauth-token", self.oauth_token, "twitch.tv/" + self.username, self.quality, "-o", recorded_filename]) File "C:\Users\Danilshik\Anaconda3\lib\subprocess.py", line 267, in call with Popen(*popenargs, **kwargs) as p: File "C:\Users\Danilshik\Anaconda3\lib\subprocess.py", line 709, in __init__ restore_signals, start_new_session) File "C:\Users\Danilshik\Anaconda3\lib\subprocess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] Не удается найти указанный файл 

Starting from the command line: python twitch-recorder.py --user=zizaran In the code, only replaced "/Users/junian/Documents/twitch" with "/Users/Danilshik/Documents/twitch/"

Before writing subprocess.call(["streamlink", "--twitch-oauth-token", self.oauth_token, "twitch.tv/" + self.username, self.quality, "-o", recorded_filename]) changed the variable recorded_filename at 123.mp4

But the error still occurs. Any idea what the problem might be?

Subprocess error in this line subprocess.call(["streamlink", "--twitch-oauth-token", self.oauth_token, "twitch.tv/" + self.username, self.quality, "-o", recorded_filename])

  • What does the launch of "stramlink" in cmd? - Andrio Skur
  • Using the streamlink library streamlink.imtqy.com - danilshik

0