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 » December 15th, 2019, 2:04 pm

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: 6803
Joined: January 22nd, 2008, 2:22 pm

Re: Python not found but it's there

Post by sander » December 15th, 2019, 3:19 pm

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 » December 15th, 2019, 3:30 pm

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 » December 16th, 2019, 12:53 pm

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 » December 16th, 2019, 5:45 pm

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 » December 19th, 2019, 9:34 am

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: 3473
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Python not found but it's there

Post by safihre » December 19th, 2019, 11:11 am

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.

aundersh
Newbie
Newbie
Posts: 2
Joined: December 7th, 2019, 11:57 am

Re: Python not found but it's there

Post by aundersh » December 19th, 2019, 2:16 pm

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