Page 2 of 88

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 4th, 2010, 10:12 am
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

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 4th, 2010, 10:15 am
by RuudBurger
It can't find the logging config. There should be a folder /logs in the same directory as the MovieManager.py

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 4th, 2010, 11:00 am
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.

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 4th, 2010, 11:01 am
by RuudBurger
try starting it "python MovieManager.py" instead of "python moviemanager/MovieManager.py"

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 4th, 2010, 11:08 am
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/

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 4th, 2010, 11:37 am
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

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 4th, 2010, 11:45 am
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"

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 4th, 2010, 2:41 pm
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 ?

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 4th, 2010, 4:40 pm
by RuudBurger
Yeah usually you get 2 versions.
On OSX I can use "python" and "python2.5" in the terminal.

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 4th, 2010, 11:02 pm
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 ?

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 5th, 2010, 2:41 am
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

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 5th, 2010, 5:08 am
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 ?

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 5th, 2010, 5:15 am
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.

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 5th, 2010, 6:10 am
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.

Re: NZB Movie Manager - Automatic Movie Downloader

Posted: July 5th, 2010, 6:14 am
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