CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Got a program that plays well with SABnzbd? Share it here!
jbw
Release Testers
Release Testers
Posts: 12
Joined: January 12th, 2009, 4:19 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by jbw »

Hey,
I'm getting the following error when trying to launch moviemanager from anywhere but the root moviemanager folder. I don't know python so I've no idea what's going on. I first noticed it when I tried setting up a launchd item for it. I've tried running the .app but that errors out with either this same error or the previous python 2.5 error I mentioned. Hope this helps shed some light on it.

Running Mac OSX 10.5.8 and python 2.6.5 on a PPC G4 macmini.
username:~ username$ python moviemanager/MovieManager.py
Traceback (most recent call last):
  File "moviemanager/MovieManager.py", line 13, in
    logging.config.fileConfig(os.path.join(path_base, 'logs', 'logging.conf'))
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/config.py", line 76, in fileConfig
    formatters = _create_formatters(cp)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/config.py", line 109, in _create_formatters
    flist = cp.get("formatters", "keys")
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ConfigParser.py", line 531, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'formatters'
username:~ username$ python --version
Python 2.6.5
username:~ username$ cd moviemanager/
username:moviemanager username$ python MovieManager.py
[04/Jul/2010:15:45:11] ENGINE Listening for SIGHUP.
[04/Jul/2010:15:45:11] ENGINE Listening for SIGTERM.
[04/Jul/2010:15:45:11] ENGINE Listening for SIGUSR1.
[04/Jul/2010:15:45:11] ENGINE Bus STARTING
[04/Jul/2010:15:45:11] ENGINE Started monitor thread '_TimeoutMonitor'.
[04/Jul/2010:15:45:11] ENGINE Serving on 0.0.0.0:5000
[04/Jul/2010:15:45:11] ENGINE Bus STARTED

RuudBurger
Sr. Member
Sr. Member
Posts: 305
Joined: July 2nd, 2010, 6:11 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by RuudBurger »

It can't find the logging config. There should be a folder /logs in the same directory as the MovieManager.py
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum

jbw
Release Testers
Release Testers
Posts: 12
Joined: January 12th, 2009, 4:19 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by jbw »

RuudBurger wrote: It can't find the logging config. There should be a folder /logs in the same directory as the MovieManager.py
That folder exists in the same directory as MovieManager.py.

RuudBurger
Sr. Member
Sr. Member
Posts: 305
Joined: July 2nd, 2010, 6:11 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by RuudBurger »

try starting it "python MovieManager.py" instead of "python moviemanager/MovieManager.py"
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum

User avatar
rascalli
Moderator
Moderator
Posts: 666
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: NZB Movie Manager - Automatic Movie Downloader

Post by rascalli »

Nothing in the log like that

Last thing is this :

Code: Select all

10:57:38,115 INFO  [app.lib.sabNzbd] Result text from SAB: ok
10:57:38,116 INFO  [app.lib.sabNzbd] NZB sent to SAB successfully.
I have categories set-up for movies.
So it ends up in : /storage1/incoming/movies

So I set in movie manager the download path as : /storage1/incoming/movies/

jbw
Release Testers
Release Testers
Posts: 12
Joined: January 12th, 2009, 4:19 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by jbw »

RuudBurger wrote: try starting it "python MovieManager.py" instead of "python moviemanager/MovieManager.py"
Sorry I should have explained the issue when I posted the terminal output earlier. Whilst it works when I launch it from the moviemanager root folder I'm trying to setup a launchd item for moviemanager. From what I know this requires an absolute path when running a terminal command like 'python /Users/username/moviemanger/MovieManager.py'. I'll write a bash script that cd's into the right folder then launch it, just thought it worth a mention.

Cheers,
J

RuudBurger
Sr. Member
Sr. Member
Posts: 305
Joined: July 2nd, 2010, 6:11 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by RuudBurger »

Yeah I'm probably getting the current dir the wrong way, will look at it.

For your bash script: "cd /Users/username/moviemanger/; python MovieManager.py -d"
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum

pspgimp
Newbie
Newbie
Posts: 44
Joined: October 17th, 2009, 5:05 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by pspgimp »

jbw wrote:
pspgimp wrote: Hi really excited about this, installed on my Linux intel based SAN device doing a GIT clone, however when I try to run MovieManager I get the following.



[/share/MD0_DATA/.qpkg/Movie-Manager] # python MovieManager.py -d               /share/MD0_DATA/.qpkg/Movie-Manager/app/config/configApp.py:81: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
 File "MovieManager.py", line 21, in
   from app.config.configApp import configApp
 File "/share/MD0_DATA/.qpkg/Movie-Manager/app/config/configApp.py", line 81
   with open(self.file, 'wb') as configfile:
           ^
SyntaxError: invalid syntax


I do have other python apps running and other web based applications on the SAN, could it be a conflict there ?


EDIT. Just noticed that you script says 2.6 of python however my version is only 2.5.2 could that be the issue ?
Yep my earlier post contains this same error. Fixed it by updating to 2.6.
Nice to hear the extra quality settings are on their way! :)
Thanks for the reply, I know nothing about python but can I have two versions running on on linux install ? just in case some of my other apps need 2.5.2 ?

RuudBurger
Sr. Member
Sr. Member
Posts: 305
Joined: July 2nd, 2010, 6:11 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by RuudBurger »

Yeah usually you get 2 versions.
On OSX I can use "python" and "python2.5" in the terminal.
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum

User avatar
rascalli
Moderator
Moderator
Posts: 666
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: NZB Movie Manager - Automatic Movie Downloader

Post by rascalli »

RuudBurger wrote: For the renaming no python script needed in sabnzbd. Just set you movie download folder, and where you want them to go.
So how does it work then ?
How does sabnzbd+ tells moviemanager that it is done and can be processed ?

As unfortunately it is still not workig
FOr example for sickbeard it works, but then you need to set a script


Any help would be appreciated , waht set-ups do you other guys have for this ?

RuudBurger
Sr. Member
Sr. Member
Posts: 305
Joined: July 2nd, 2010, 6:11 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by RuudBurger »

It works by watching the directory, and does something when a folder is added.

Are you using a Windows server/machine? If so, try mounting the share instead of using it directly
Last edited by RuudBurger on July 5th, 2010, 2:51 am, edited 1 time in total.
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum

User avatar
rascalli
Moderator
Moderator
Posts: 666
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: NZB Movie Manager - Automatic Movie Downloader

Post by rascalli »

This is a linux based server (UBUNTU)
HDD is not mounted but it is a direct path

Does it need special permissions ?
IOr something else that you can think of ?

RuudBurger
Sr. Member
Sr. Member
Posts: 305
Joined: July 2nd, 2010, 6:11 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by RuudBurger »

No special permission. Try running MM as root and see if that works.
The user that runs MM does have to have access & writing permissions to the directories of course.
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum

jonaskp
Newbie
Newbie
Posts: 37
Joined: July 5th, 2010, 6:07 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by jonaskp »

Hey
Just found this and it looks like it's excactly what I've been looking for.
Unfortunately I am a python noob, and I have absolutely no idea what to download and how I should install it. Is it just me, or would it be possible for a very short installation instruction?

Second question, do you know if it is possible to run this on a NAS? I run Sabnzbd on my QNAP, and would like to also install this on the same machine.

RuudBurger
Sr. Member
Sr. Member
Posts: 305
Joined: July 2nd, 2010, 6:11 am

Re: NZB Movie Manager - Automatic Movie Downloader

Post by RuudBurger »

Installation can be found in the README ;) Just download the code from github ("Download Source"-button).

It should work on any device that's running python 2.6, and as SABnzbd also runs on python, it should work on your QNAP
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum

Post Reply