2bc4 / streamlink-ttvlol

Streamlink Twitch plugin modified to work with the TTV.LOL API
BSD 2-Clause "Simplified" License
188 stars 6 forks source link

can't find '__main__' module #44

Closed hellishvictor closed 1 year ago

hellishvictor commented 1 year ago

Hi, I've loaded the script to roaming\streamlin\plugins\ and run streamlink from a batch file, when an ad start, it stop the stream and shows the following:

streamlink "twitch.tv/whatever" --twitch-reexec-on-ad

[plugins.twitch][info] Streamlink Twitch plugin (2bc4 fork).
[plugins.twitch][info] Please report issues to https://github.com/2bc4/streamlink-ttvlol/issues
[cli][info] Found matching plugin twitch for URL twitch.tv/whatever
[cli][info] Available streams: audio_only, 160p (worst), 360p, 480p_alt, 480p (best)
[cli][info] Opening stream: 480p (hls)
[cli][info] Starting player: "C:\PROGRA~1\MPC-HC\mpc-hc64.exe"
[plugins.twitch][info] Encountered an ad segment, re-execing to retrieve a new playlist

C:\Program Files\python\python.exe: can't find '__main__' module in 'C:\\Program Files\\Python\\Scripts\\streamlink'

Cheers

2bc4 commented 1 year ago

Hmm, what's the output if you also pass --loglevel=debug?

and run streamlink from a batch file

This could be the issue, someone also was having trouble with running it from a script.

2bc4 commented 1 year ago

Closed due to inactivity. Feel free to open a new issue if you are still encountering this.