Page 1 of 1

Python not found but it's there

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

Re: Python not found but it's there

Posted: December 15th, 2019, 3:19 pm
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.

Re: Python not found but it's there

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

Re: Python not found but it's there

Posted: December 16th, 2019, 12:53 pm
by jdodenhoff
Any thoughts?

Re: Python not found but it's there

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

Re: Python not found but it's there

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

Re: Python not found but it's there

Posted: December 19th, 2019, 11:11 am
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.

Re: Python not found but it's there

Posted: December 19th, 2019, 2:16 pm
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.