"SyntaxError: invalid syntax"

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
RickN
Newbie
Newbie
Posts: 1
Joined: May 16th, 2023, 12:54 am
Contact:

"SyntaxError: invalid syntax"

Post by RickN »

Hello,

I am getting the following error:
File "/home/greg/video/scripts/nzbToMedia/nzbToMedia . py", line 45
cpshost=127.0.0.1
SyntaxError: invalid syntax

I have gone to nzbtomedia and line 44 tells me that "localhost" and "127.0.0.1" are both ok.
I have tried both and failed. "localhost" said "invalid" something I think.

any thoughts?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: "SyntaxError: invalid syntax"

Post by sander »

Not SABnzbd, so no experiece, but I think you have to put it in quotes. So

cpshost="127.0.0.1"
Post Reply