blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.71k stars 304 forks source link

Path not found (python 3.8.6) #269

Closed vegasit closed 3 years ago

vegasit commented 3 years ago

Describe the bug

I get the following error after updating to Tautulli V2.6.2, Windows 2008 R2. Have been a PP member for many years. This did work great prior to updating Tautulli. I also removed all other versions of Python to make sure there was no conflicts

Provide logs


2020-12-17 19:05:42 | ERROR | Tautulli Notifiers :: Failed to run script: [WinError 2] The system cannot find the file specified
-- | -- | --
2020-12-17 19:05:42 | DEBUG | Tautulli Notifiers :: Executing script in a new thread.
2020-12-17 19:05:42 | DEBUG | Tautulli Notifiers :: Full script is: ['python', 'P:\\Tautulli\\scripts\\kill_stream.py', '--jbop', 'stream', '--username', 'XXXXXX', '--sessionId', 'llxtj72djd3s9ux5u1hyh68f', '--killMessage', 'Transcoding streams are not allowed for 4K content. Contact the Plex admin for help.']
2020-12-17 19:05:42 | DEBUG | Tautulli Notifiers :: Trying to run notify script: P:\Tautulli\scripts\kill_stream.py, arguments: ['--jbop', 'stream', '--username', 'XXXXX', '--sessionId', 'llxtj72djd3s9ux5u1hyh68f', '--killMessage', 'Transcoding streams are not allowed for 4K content. Contact the Plex admin for help.'], action: play
2020-12-17 19:05:42 | INFO | Tautulli NotificationHandler :: Preparing notification for notifier_id 2.
2020-12-17 19:05:42 | DEBUG | Tautulli NotificationHandler :: Custom conditions evaluated to 'True'. Conditions: [True, True].
2020-12-17 19:05:42 | DEBUG | Tautulli NotificationHandler :: Condition logic [blank]: {1} and {2} > True
2020-12-17 19:05:42 | DEBUG | Tautulli NotificationHandler :: {2} video_decision \| is \| 'transcode' > 'transcode' > True
2020-12-17 19:05:42 | DEBUG | Tautulli NotificationHandler :: {1} video_resolution \| is \| '4k' > '4k' > True
2020-12-17 19:05:42 | DEBUG | Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 2.
2020-12-17 19:05:42 | DEBUG | Tautulli NotificationHandler :: Global notification conditions evaluated to 'True'.
2020-12-17 19:05:42 | DEBUG | Tautulli NotificationHandler :: Checking global notification conditions.
2020-12-17 19:05:42 | DEBUG | Tautulli NotificationHandler :: Notifiers enabled for notify_action 'on_play'.
2020-12-17 19:05:42 | DEBUG | Tautulli ActivityHandler :: Session 146 started by user 1644174 (XXXXX) with ratingKey 514418 (Greyhound).

I have confirmed that this is the correct path to the script: P:\Tautulli\scripts\kill_stream.py

blacktwin commented 3 years ago

Can you please share the entire logs?

vegasit commented 3 years ago

here it is.

https://gist.github.com/vegasit/edea22ef208f7cb8259489920a86c6fe

blacktwin commented 3 years ago

I also removed all other versions of Python to make sure there was no conflicts

Without your entire logs I won't know what version of Tautulli you're running. I'm going to assume you've updated to the new Tautulli using the exe since you're on windows. If you removed your Python versions then you likely broke your PATH for python which the script needs or you don't have any version of Python installed. Without python and a PATH for python then the won't launch.

Try running from you cmd: python --version