mirror of
https://github.com/nzbgetcom/nzbget.git
synced 2026-03-02 22:57:10 -05:00
Extension Script - No python error in Service mode on Windows (-D key) #71
Labels
No labels
bug
documentation
enhancement
extension
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nzbget#71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sdburrows on GitHub (Jan 15, 2024).
Originally assigned to: @luckedea on GitHub.
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.
@sdburrows commented on GitHub (Jan 15, 2024):
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.
@luckedea commented on GitHub (Jan 15, 2024):
@sdburrows Is it possible you installed Python3 while NZBGet was already running? On Windows environment values only apply after you start new process.
@sdburrows commented on GitHub (Jan 15, 2024):
@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?
@luckedea commented on GitHub (Jan 16, 2024):
@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.
@flappy81 commented on GitHub (Jan 20, 2024):
@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.
@sdburrows commented on GitHub (Jan 20, 2024):
@flappy81 Could you share the steps? I can't see anything within my log. This is all I have:
@flappy81 commented on GitHub (Jan 20, 2024):
@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.
@sdburrows commented on GitHub (Jan 20, 2024):
@flappy81 Thanks for the instructions. Somehow, I dont have this option. Python isn't even listed there.

@phnzb commented on GitHub (Jan 22, 2024):
@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.
@sdburrows commented on GitHub (Feb 11, 2024):
@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?