Open sdburrows opened 9 months ago
Just an update: I had to put the following path under Extension, Shell Override: .py=C:\Users\Username\AppData\Local\Programs\Python\Python312\python.exe
I checked that Python does exist in my user variable path.
@sdburrows Is it possible you installed Python3 while NZBGet was already running? On Windows environment values only apply after you start new process.
@luckedea, I have deleted Python, restarted the PC, closed NZBGet, reinstalled Python, ran NZBget and the result was still the same - "Python not installed".
However, I think I may have narrowed down the issue a bit more. If I run NZBGet from Start menu, Python is detected. Normally, I run NZBget as a service. In service mode (running with -D parameter), Python is NOT detected. Is service mode broken?
@sdburrows Hard to say at this point what's going on. Preliminary testing doesn't show any issues. Upcoming v23 would introduce improvements to how nzbget runs extensions, this is task in focus.
I'll keep the issue open to work on it. Thank you for bringing it up.
@sdburrows Take a look in your NZBGet log file. There is an explanation, and suggestion what to do. I cannot explain it properly in english, but it seems it has to with app aliasses in Windows, and disabling those for Python did the trick, at least for me.
@flappy81 Could you share the steps? I can't see anything within my log. This is all I have:
Sun Jan 21 08:41:01 2024 INFO nzbget 22.2-testing-20240116 service-mode
Sun Jan 21 08:41:01 2024 INFO Scheduler: unpausing download
Sun Jan 21 08:41:01 2024 INFO Executing scheduler-script Completion.py
Sun Jan 21 08:41:01 2024 INFO Completion: No installed Python found!
@sdburrows Sure. It came up in the log for me, when trying to run VideoSort. I changed the following settings. Go to Start Menu->Settings->Apps->App execution aliases (on the Apps & features page) Then I disabled both the python.exe and python3.exe toggles. That did the trick.
@flappy81 Thanks for the instructions. Somehow, I dont have this option. Python isn't even listed there.
@sdburrows As workaround you can set nzbget service to run with user account. Start - Services - NZBGet - Properties - Log on Change from "Local System account" to "This account" and enter account name and password of user, from which NZBGet and Python are installed.
@phnzb, I have tested that changing the Log on from "Local System account" to "This account" fixes the no python issue. Is this a bug or a problem with my installation?
I am having issues with Python and extensions. This is what I have done:
NZBGet has been spitting out errors like:
Once download is completed, I got the following errors: Post-process-script videosort\VideoSort.py for XYZ failed (terminated with unknown status) Post-process-script FakeDetector.py for XYZ failed (terminated with unknown status) Post-process-script FailureLink.py for XYZ failed (terminated with unknown status)
What is happening? Please help.