Python not found but it's there

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
jdodenhoff
Newbie
Newbie
Posts: 5
Joined: December 14th, 2019, 10:43 pm

Python not found but it's there

Post by jdodenhoff »

Hi all,

I've recently started having a problem where Sab isn't finding the Python installation. It has been working just fine for a while now. Suddenly, I get the following message:

Exit(9009) Python was not found but can be installed from the Microsoft Store: <insert microsoft link that I can't post here>.

When I saw this message attached to 20+ new files, I went and updated Python and Sab, but I'm still getting the message.

Any ideas why Python (which is definitely installed) would suddenly not be found? Nothing has changed otherwise.

Thanks.
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: Python not found but it's there

Post by sander »

Is this on Windows? If so, which Windows exactly? Because " Microsoft Store" sounds Windows-S-style.

SABnzbd on Windows brings its own python, included in the SAB exe ... so ... no need to install Python at all. It could be a post-processing script or another program that is looking for Python.
jdodenhoff
Newbie
Newbie
Posts: 5
Joined: December 14th, 2019, 10:43 pm

Re: Python not found but it's there

Post by jdodenhoff »

This is Windows 10. And the script that is trying to run is sabtosickbeard, which calls the autoprocesstv script.

Like the previous post said, there's never been a problem until recently, and it was sudden. It has been running successfully for months.
jdodenhoff
Newbie
Newbie
Posts: 5
Joined: December 14th, 2019, 10:43 pm

Re: Python not found but it's there

Post by jdodenhoff »

Any thoughts?
jdodenhoff
Newbie
Newbie
Posts: 5
Joined: December 14th, 2019, 10:43 pm

Re: Python not found but it's there

Post by jdodenhoff »

I appreciate you taking the time to respond, but that's not an answer to my question.

I'd like to find out why this is suddenly happening. Also, manually running it from CMD defeats the purpose of Sabnzbd running the script for me as part of its function.
jdodenhoff
Newbie
Newbie
Posts: 5
Joined: December 14th, 2019, 10:43 pm

Re: Python not found but it's there

Post by jdodenhoff »

Even weirder now, there have been 2 files that have come in, where the script has completed. The rest are all still returning with the message that Python is not installed, when it clearly is.

Anyone?
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Python not found but it's there

Post by safihre »

When you install Python, make sure it matches your script's Python. So in most cases it's a Python 2 script, so make sure you have Python 2.7 installed.
When installing Python, make sure that during the install select to add Python to the Path, which is one of the advanced settings.
Otherwise it might indeed not find it.
After every install of Python, you need to reboot the PC.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
aundersh
Newbie
Newbie
Posts: 2
Joined: December 7th, 2019, 11:57 am

Re: Python not found but it's there

Post by aundersh »

Open the Python Shell. You see the Python Shell window appear.
Type import sys and press Enter.
Type for p in sys.path: and press Enter. Python automatically indents the next line for you. ...
Type print(p) and press Enter twice.
Post Reply