Extension Script - No python error in Service mode on Windows (-D key) #71

Open
opened 2026-02-28 04:22:48 -05:00 by deekerman · 10 comments
Owner

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:

  1. Upgraded my NZBGet installation v22 from this repository
  2. Updated the extensions to latest version listed in this directory - https://github.com/nzbgetcom
  3. Deleted Python v2.7
  4. Installed Python v3.12.1 from https://www.python.org/downloads/

NZBGet has been spitting out errors like:

  • FakeDetector: No installed Python found!
  • Completion: No installed Python found!
  • Videosort: No installed Python found!

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.

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: 1. Upgraded my NZBGet installation v22 from this repository 2. Updated the extensions to latest version listed in this directory - https://github.com/nzbgetcom 3. Deleted Python v2.7 4. Installed Python v3.12.1 from https://www.python.org/downloads/ NZBGet has been spitting out errors like: - FakeDetector: No installed Python found! - Completion: No installed Python found! - Videosort: No installed Python found! 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.
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Author
Owner

@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?

@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?
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Author
Owner

@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:

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 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: ``` 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! ```
Author
Owner

@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.

@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.
Author
Owner

@sdburrows commented on GitHub (Jan 20, 2024):

@flappy81 Thanks for the instructions. Somehow, I dont have this option. Python isn't even listed there.
Screenshot 2024-01-21 at 10 59 20

@sdburrows commented on GitHub (Jan 20, 2024): @flappy81 Thanks for the instructions. Somehow, I dont have this option. Python isn't even listed there. ![Screenshot 2024-01-21 at 10 59 20](https://github.com/nzbgetcom/nzbget/assets/50125721/d32fa168-7a43-43d3-b2b6-c9f6cc4aa4c0)
Author
Owner

@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.

@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.
Author
Owner

@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?

@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?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nzbget#71
No description provided.