HELP - sabToSickBeard - Syntax error

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
jamesm1985
Newbie
Newbie
Posts: 1
Joined: September 26th, 2012, 4:09 pm

HELP - sabToSickBeard - Syntax error

Post by jamesm1985 »

Hi there,

I have been trying to set up SickBeard and SABnzbd on a Mac Mini using the following guide

http://www.applemediacenter.com/2011/09 ... sickbeard/

and am now getting the following error message once SABnzbd has completed the download.

SyntaxError: Non-ASCII character '\xff' in file /Users/user/Library/Application Support/SABnzbd/scripts/sabToSickBeard.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Has anybody come across this before. Any solutions?

The code for sabToSickBeard.py is as follows...

Code: Select all

#!/usr/bin/env python

# Author: Nic Wolfe <nic@wolfeden.ca>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of Sick Beard.
#
# Sick Beard is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Sick Beard is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with Sick Beard.  If not, see <http://www.gnu.org/licenses/>.


import sys
import autoProcessTV

if len(sys.argv) < 2:
    print "No folder supplied - is this being called from SABnzbd?"
    sys.exit()
elif len(sys.argv) >= 3:
    autoProcessTV.processEpisode(sys.argv[1], sys.argv[2])
else:
    autoProcessTV.processEpisode(sys.argv[1])
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: HELP - sabToSickBeard - Syntax error

Post by shypike »

DOS formatted file (CR-LF) on a Mac?
Post Reply