Page 1 of 1

HELP - sabToSickBeard - Syntax error

Posted: September 26th, 2012, 4:11 pm
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])

Re: HELP - sabToSickBeard - Syntax error

Posted: September 26th, 2012, 4:33 pm
by shypike
DOS formatted file (CR-LF) on a Mac?