Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

4
Notify NewIP script failing
Post Flair (click to view more posts with a particular flair)
Post Body

I've read through the FAQ, Wiki and here, and have found some information, but none of the suggested fixes are working.

I've been using the "notify_newip.py" script for a while now, but since upgrading to Tautulli 2.5 with python bundled, it fails with the following error:

2020-10-12 09:30:27 - DEBUG   :: Thread-2 : Tautulli Notifiers :: Trying to run notify script: /Users/*****/scripts/notify_newip.py, arguments: ['nopythonpath', 'python', '-ip', '***.***.***.***', '-us', 'user1'], action: test
2020-10-12 09:30:27 - DEBUG   :: Thread-2 : Tautulli Notifiers :: Full script is: ['python2', '/Users/*****/scripts/notify_newip.py', '-ip', '***.***.***.***', '-us', 'user1']
2020-10-12 09:30:27 - DEBUG   :: Thread-2 : Tautulli Notifiers :: Executing script in a new thread.
2020-10-12 09:30:27 - DEBUG   :: Thread-203 : Tautulli Notifiers :: Subprocess returned with status code 1.
2020-10-12 09:30:27 - ERROR   :: Thread-203 : Tautulli Notifiers :: Script error: 
  Traceback (most recent call last):
    File "/Users/*****/scripts/notify_newip.py", line 17, in <module>
      import requests
  ImportError: No module named requests

I've run "python -m pip install requests", and it installed the module, but it did not change the results. I've confirmed that the module is there by launching python from the command line, and viewing the installed modules. I see requests in the list. In addition, manually running this:

python notify_newip.py -ip ***.***.***.*** -us user1

will send an email successfully, although, it does contain an error at the beginning of the output. I'm not sure if it's related to the error in the Tautulli log, or just because I'm running it outside of Tautulli. The full output is:

Tautulli API 'get_user' request failed: None.Successfully retrieved geolocation data.Successfully retrieved UserIPs data.IP has no history.Successfully sent Tautulli notification.%

I also found in the FAQ about "nopythonpath" to use the system version of Python instead of the bundled version, but it doesn't seem to make a difference. You can see my use of "nopythonpath" in the output from the error log at the beginning of this post.

The machine I'm having the problem with is running MacOS Catalina (10.15.7), but I'm running the same Tautulli version on a Windows 10 machine, and the script works just fine there.

Any ideas? Thanks!

Author
Account Strength
80%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
231
Link Karma
186
Comment Karma
45
Profile updated: 4 hours ago
Posts updated: 18 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago