Page 1 of 1

Problems with autoProcess on NAS (qnap)

Posted: March 25th, 2014, 12:15 pm
by Wasti
I installed SABnzbd (0.7.16) and Sick Beard (v130805) on my QNAP TS-269L yesterday and everything went well, or so I thought...

When a file is downloaded (with SAB) the files gets extracted. When this is done the script (SabToSickBeard.py) is called and then I get an error.
The error I got is:

Code: Select all

Can't import autoProcessTV.py, make sure it's in the same folder as /share/Download/script/sabToSickBeard.py
I did some research without any luck. Found a thread on qnaps forum http://forum.qnap.com/viewtopic.php?f=223&t=35015 where they suggested to use other script-files which I then tried. Now another error pops up:

Code: Select all

     Traceback (most recent call last):
  File "/share/Download/script/sabToSickBeard.py", line 23, in <module>
    import autoProcessTV
  File "/share/CACHEDEV1_DATA/Download/script/autoProcessTV.py", line 23, in <module>
    import ConfigParser
ImportError: No module named ConfigParser


My autoProcessTV.cfg file looks like this:

Code: Select all

# Sick Beard autoProcessTV configuration file
# Used in combination with scripts like sabToSickBeard that call autoProcessTV
#
# Rename (or copy) autoProcessTV.cfg.sample to autoProcessTV.cfg
# Change the host, port, username, and password values
# to the appropriate settings for your Sick Beard server.
#
# Example:  Sick Beard can be accessed on http://localhost:8081
#           without username/password
#
# host=      # Sick Beard host (localhost or IP address)
# port=            # Sick Beard port
# username=         # Credentials for logging into Sick Beard
# password=         # Credentials for logging into Sick Beard (don't use special characters)
# web_root=         # Sick Beard web_root
# ssl=0             # http (ssl=0) (for https use ssl=1)

[SickBeard]
host=0.0.0.0
port=7071
username=admin
password=*****
web_root=/
ssl=0

can someone please give me a hint or a clue where or what the problem can be?

//W

Re: Problems with autoProcess on NAS (qnap)

Posted: March 25th, 2014, 12:44 pm
by Wasti
Wasti wrote:I installed SABnzbd (0.7.16) and Sick Beard (v130805) on my QNAP TS-269L yesterday and everything went well, or so I thought...

When a file is downloaded (with SAB) the files gets extracted. When this is done the script (SabToSickBeard.py) is called and then I get an error.
The error I got is:

Code: Select all

Can't import autoProcessTV.py, make sure it's in the same folder as /share/Download/script/sabToSickBeard.py
I did some research without any luck. Found a thread on qnaps forum http://forum.qnap.com/viewtopic.php?f=223&t=35015 where they suggested to use other script-files which I then tried. Now another error pops up:

Code: Select all

     Traceback (most recent call last):
  File "/share/Download/script/sabToSickBeard.py", line 23, in <module>
    import autoProcessTV
  File "/share/CACHEDEV1_DATA/Download/script/autoProcessTV.py", line 23, in <module>
    import ConfigParser
ImportError: No module named ConfigParser


I checked line 23 in autoprocessTV.py and the code looked like this:

Code: Select all

# 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 urllib
import os.path
import ConfigParser

class AuthURLOpener(urllib.FancyURLopener):
    def __init__(self, user, pw):
        self.username = user
        self.password = pw
        self.numTries = 0
        urllib.FancyURLopener.__init__(self)

    def prompt_user_passwd(self, host, realm):
        if self.numTries == 0:
            self.numTries = 1
            return (self.username, self.password)
        else:
            return ('', '')

    def openit(self, url):
        self.numTries = 0
        return urllib.FancyURLopener.open(self, url)


def processEpisode(dirName, nzbName=None):
autoProcessTV.py           EV1_DATA/Download/script] # vi autoProcessTV.py
# URL: http://code.google.com/p/sickbeard/

Re: Problems with autoProcess on NAS (qnap)

Posted: March 25th, 2014, 4:07 pm
by shypike
This is a SickBeard configuration issue.
Check SickBeard's documentation or ask a question on their forum.