blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.64k stars 305 forks source link

kill_stream.py "ModuleNotFoundError:No Module named 'requests'" #394

Closed fkick closed 11 months ago

fkick commented 11 months ago

HI,

I'm running Tautulli and plex on a MacOS server with python3 installed, and I'm trying to get the kill_stream.py script to run.

When the script is triggered, I'm seeing the error:

Tautulli Notifiers :: Script error:     Traceback (most recent call last):         File "/Users/mini/Library/Application Support/Tautulli/scripts/kill_stream.py", line 60, in <module>             from requests import Session     ModuleNotFoundError: No module named 'requests'
--
2023-08-18 22:27:35 | DEBUG | Tautulli Notifiers :: Subprocess returned with status code 1.
2023-08-18 22:27:35 | DEBUG | Tautulli Notifiers :: Executing script in a new thread.
2023-08-18 22:27:35 | DEBUG | Tautulli Notifiers :: Full script is: ['python3', '/Users/mini/Library/Application Support/Tautulli/scripts/kill_stream.py', '--jbop', 'stream', '--username', 'dk********n', '--sessionId', '633E05C1-8BDE-4DA5-B68C-3DF4886B8597', '--killMessage', '192.168.1.1 is not allowed to access Supermini.']

On the Mac, I've run python3 -m pip install requests but I'm getting the the notice that "Requirement already satisfied" which leads me to believe that the requests module is already installed.

Any thoughts as to what the issue could be?

Thanks!

fkick commented 11 months ago

Just looping back to close this out...

Apprarently I had multiple python3 instances installed on my Mac as a Python 3.9 version had been installed with the Apple Dev Tools and I was using Python 3.11 from homebrew. As such, Tautulli was defaulting to the one that did not have the requirements module installed.