Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with SABnzbd on Mac #75

Closed
kilgil27 opened this issue Nov 8, 2021 · 6 comments
Closed

Issue with SABnzbd on Mac #75

kilgil27 opened this issue Nov 8, 2021 · 6 comments
Labels

Comments

@kilgil27
Copy link

kilgil27 commented Nov 8, 2021

馃 Describe the bug
Getting the following error when trying to run with SABnzbd running on a Mac:
Notification script returned exit code 1 and output "Traceback (most recent call last): File "/Users/killian/Scripts/nzb-notify-0.9.4/Notify.py", line 174, in from nzbget import SCRIPT_MODE ImportError: No module named nzbget "

馃捇 Your System Details:

  • OS: macOS Big Sur
  • Python Version: Python 3.10.0

馃敭 Additional context
running the requirements again says all the requirements are met. I can run a test through terminal with the following and it goes through fine to Telegram
python sabnzbd-notify.py complete 'Hello' 'Worldp' tgram://{bot_ID}/{chat_ID}

@kilgil27 kilgil27 added the bug label Nov 8, 2021
@caronc
Copy link
Owner

caronc commented Nov 8, 2021

Seems really similar to #72. Are you using some container or packaged product?

You could try running the following in your container to see if it helps:

pip install pynzbget

@kilgil27
Copy link
Author

kilgil27 commented Nov 9, 2021

Yea I was reading through that, seems very similar but this is just a regular SAB install on a Mac mini, no containers or anything

running pip install pynzbget gets the following:

Requirement already satisfied: pynzbget in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (0.6.4)
Requirement already satisfied: lxml>=2.7 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pynzbget) (4.6.4)
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pynzbget) (1.16.0)

@kilgil27
Copy link
Author

kilgil27 commented Nov 9, 2021

you know I just tried it on a Windows PC I had setup previously that did have notifications working, and got a similar error:

Notification script returned exit code 1 and output "Traceback (most recent call last): File "C:\Tools\nzb-notify\Notify.py", line 159, in from nzbget import SCRIPT_MODE ModuleNotFoundError: No module named 'nzbget' "

wonder if something changed or I'm doing something wrong...

@caronc
Copy link
Owner

caronc commented Mar 13, 2022

Did you ever get this resolved? I can tell you with certainty that if you're not able to run this script, it's possibly due to your Python installation in windows. For the specific error you're getting; make sure you run:

pip install pynzbget

@farberm
Copy link

farberm commented Mar 14, 2022

I am getting the same error. I have python 3.10.2 installed and set as the default. Not sure what the issue is. I even tried to resolve using suggestion in Issue #72 by changing default to python3. Still same error.??? (except line 174 instead of 159)

@caronc
Copy link
Owner

caronc commented Jan 28, 2024

There is something wrong with your environment unfortunately; this isn't an issue with the script.

@caronc caronc closed this as completed Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants