problem with menus and 0.5b5

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
kiorky
Newbie
Newbie
Posts: 16
Joined: September 27th, 2009, 6:52 am

problem with menus and 0.5b5

Post 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.).
kiorky
Newbie
Newbie
Posts: 16
Joined: September 27th, 2009, 6:52 am

Re: problem with menus and 0.5b5

Post by kiorky »

I tested with the bundled cherrypy, same bug.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: problem with menus and 0.5b5

Post 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
kiorky
Newbie
Newbie
Posts: 16
Joined: September 27th, 2009, 6:52 am

Re: problem with menus and 0.5b5

Post 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.
Last edited by kiorky on December 30th, 2009, 11:35 am, edited 1 time in total.
kiorky
Newbie
Newbie
Posts: 16
Joined: September 27th, 2009, 6:52 am

Re: problem with menus and 0.5b5

Post 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)


Last edited by kiorky on December 30th, 2009, 11:48 am, edited 1 time in total.
kiorky
Newbie
Newbie
Posts: 16
Joined: September 27th, 2009, 6:52 am

Re: problem with menus and 0.5b5

Post 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.
kiorky
Newbie
Newbie
Posts: 16
Joined: September 27th, 2009, 6:52 am

Re: problem with menus and 0.5b5

Post by kiorky »

It was that.
Making a second post to show how to get it running on gentoo.
Post Reply