Page 1 of 1

problem with menus and 0.5b5

Posted: December 30th, 2009, 10:22 am
by kiorky
After upgrading to sabnzbd-0.5b5 on a gentoo host, i got a problem with menus.
Is that some sort of misconfiguration ?
See http://bordel.cryptelium.net/snapshot36.jpeg.

Context:
Except Cherrypy (official 3.2.0RC1, see http://bugs.gentoo.org/show_bug.cgi?id=298968), all is installed as the manuals say.
Whereas sabnzbd isnt yet officially in portage, i had the 0.4.x working (http://bugs.gentoo.org/132590) with some integration around the configuration and file splitting.
For the 0.4.x series, we used a forged setup.py to install files in the site-packages.
I reworked the integration for 0.5.x to be more "sabnzbd way". Idea was to drop sabnzd distribution somewhere in /usr/share and to make a wrapper to launch it with a configuration file living in /etc pointing to some "data directories" (dirscan, admin, complete, etc.).

Re: problem with menus and 0.5b5

Posted: December 30th, 2009, 10:33 am
by kiorky
I tested with the bundled cherrypy, same bug.

Re: problem with menus and 0.5b5

Posted: December 30th, 2009, 10:35 am
by shypike
Bad installation.
SABnzbd cannot find its language files.

BTW: SABnzbd doesn't use CherryPy 3.2.0RC1.
It comes with its own version of CherryPy in the tarball.
You can only use that version.

It's so easy.
If you have Python, yEnc and Cheetah installed, just unpack the tarball at any location.
Start SABnzb.py and you're up and running.

There's a perfectly fine Ubuntu package, see: http://forums.sabnzbd.org/index.php?topic=387.0

Re: problem with menus and 0.5b5

Posted: December 30th, 2009, 11:33 am
by kiorky
As i said, the last try with the attached screenshot comes from the distributed tarball and the included cherrypy so its not my fault.
All dependencies are installed.
As i got problems, i try to tackle down issues sources and so, im running "bare default" sabnzbd.

I do not use Ubuntu so the packages you want me to use are not relevant.

Re: problem with menus and 0.5b5

Posted: December 30th, 2009, 11:43 am
by kiorky
If it can help to describe you how things are deployed:

Code: Select all

clebard sabnzbd # pwd
/usr/share/sabnzbd
clebard sabnzbd # ls
SABnzbd.py  cherrypy  interfaces  sabnzbd
Wrapper:

Code: Select all

clebard sabnzbd # cat  /usr/bin/SABnzbd
#!/bin/sh
PYTHON=${PYTHON:-python}
SABNZBD_PATH="/usr/share/sabnzbd"
WRAPPED_SABNZBDPY=${SABNZBD_SCRIPT:-${SABNZBD_PATH}/SABnzbd.py}
PYTHONPATH="$PYTHONPATH:$SABNZBD_PATH"
export PYTHONPATH
cd $SABNZBD_PATH
"$PYTHON" ${DEBUG:-"$WRAPPED_SABNZBDPY" $@}
#vim: set ft=sh:

clebard sabnzbd # env|grep DEBUG
DEBUG=
Configuration tweaks

Code: Select all

clebard sabnzbd # for i in  /var/lib/sabnzbd/*;do echo Configuration lines including $i;grep $i /etc/sabnzbd.conf;done
Configuration lines including /var/lib/sabnzbd/admin
admin_dir = /var/lib/sabnzbd/admin
Configuration lines including /var/lib/sabnzbd/cache
cache_dir = /var/lib/sabnzbd/cache
Configuration lines including /var/lib/sabnzbd/complete
complete_dir = /var/lib/sabnzbd/complete
Configuration lines including /var/lib/sabnzbd/dirscan
dirscan_dir = /var/lib/sabnzbd/dirscan
Configuration lines including /var/lib/sabnzbd/download
download_dir = /var/lib/sabnzbd/download
Configuration lines including /var/lib/sabnzbd/nzb_backup
nzb_backup_dir = /var/lib/sabnzbd/nzb_backup
Configuration lines including /var/lib/sabnzbd/scripts
script_dir = /var/lib/sabnzbd/scripts
What's python is seeing

Code: Select all

>>> import sys
>>> sys.path
['/usr/share/sabnzbd-0.5.0_beta5', '/usr/lib/portage/pym', '/usr/share/sabnzbd', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/gtk-2.0', '/usr/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg-info']
>>> import cherrypy, sabnzbd
>>> cherrypy, sabnzbd
(<module 'cherrypy' from '/usr/share/sabnzbd-0.5.0_beta5/cherrypy/__init__.py'>, <module 'sabnzbd' from '/usr/share/sabnzbd-0.5.0_beta5/sabnzbd/__init__.pyc'>)
(Pdb)



Re: problem with menus and 0.5b5

Posted: December 30th, 2009, 12:16 pm
by kiorky
putting some pdb there and there in the code points to me that the 'languages' directory is not installed.

I am fixing the package, i ll up the post as soon as it is done.

Re: problem with menus and 0.5b5

Posted: December 30th, 2009, 12:30 pm
by kiorky
It was that.
Making a second post to show how to get it running on gentoo.