hellanzb-warnings disable standalone-mode

Asked by DaisyF

When starting from gui or console, "lottanzb -d" gives :

   09:39:02 lottanzb.core Launching GUI...
   09:39:03 lottanzb.modes.standalone Could not start the HellaNZB daemon.
   09:39:03 lottanzb.modes Could not enter usage mode 'Stand-alone'.
   09:39:03 lottanzb.modes /usr/lib/python2.6/site-packages/twisted/internet/_sslverify.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead
   ...
   09:39:03 widget proxy Setting state for password to VALID
   09:39:03 fade Stopping
   09:39:03 kiwi.view SelectionDialog: Attaching slave mode of type ConfigView
   09:39:11 lottanzb.modes.standalone Could not start the HellaNZB daemon.
   09:39:11 lottanzb.modes Could not enter usage mode 'Stand-alone'.
   09:39:11 lottanzb.modes.ui /usr/lib/python2.6/site-packages/twisted/internet/_sslverify.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead

When running "/usr/bin/hellanzb.py", hellanzb starts correctly, but gives warnings causing lottanzb to halt:

   user@laptop:~/.lottanzb$ /usr/bin/hellanzb.py
   /usr/lib/python2.6/site-packages/twisted/internet/_sslverify.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import itertools, md5
   /usr/lib/python2.6/site-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
   /usr/lib/python2.6/site-packages/Hellanzb/Util.py:33: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message

   hellanzb v0.13 (config = /etc/hellanzb.conf)
   (changeme) Opening 4 connections...
   hellanzb - Now monitoring queue...
   Resuming: lala
   Parsing: lala.nzb...
   Parsed: 49 files (1671 posts), 629.5MB
   Queued: 629.5MB
   [1]
   [2]
   [3]
   [4]
   [Total] 0.0KB/s, 629 MB queued, ETA: 00:00:00

My lottanzb.conf looks like this :

[core]
config_revision = 1

[modes.remote_frontend]
password = changeme
port = 8760
address = localhost

[modes]
active = standalone

[gui]
start_minimized = True
window_width = 766
window_height = 395

[modes.local_frontend]
config_file = /etc/hellanzb.conf

[plugins.categories]
categories_list =
        Music
        DVD Movie
        XVID Movie
        TV Series
        HD Movie
        Game
        Software
        Other
separator = --
enabled = False

[plugins]

[modes.standalone]
hellanzb_command = /usr/bin/hellanzb.py

[backend]
update_interval = 1.0

my box :

uname -r
2.6.30-ARCH

My guess is lottanzb should disregard the initial warnings ...

Question information

Language:
English Edit question
Status:
Solved
For:
LottaNZB Edit question
Assignee:
No assignee Edit question
Solved by:
DaisyF
Solved:
Last query:
Last reply:
Revision history for this message
Severin H (severinh) said :
#1

Hi DaisyF,

are you sure that HellaNZB actually runs after you launch LottaNZB and get this "error" message? The problem is that LottaNZB will just display the first warning or error message. That's why the actual error message wasn't displayed in your case.

Please note that when running /usr/bin/hellanzb.py directly, it will use the configuration file /etc/hellanzb.conf, but using LottaNZB, the configuration file .lottanzb/hellanzb.conf is used. I'm pretty sure that something is wrong with the configuration file managed by LottaNZB that makes it impossible to successfully launch HellaNZB. Since LottaNZB's GUI isn't helpful in this case, try running "/usr/bin/hellanzb.py -c ~/.lottanzb/hellanzb.conf". You will probably get the deprecation warnings and the error message we're interested in at the bottom.

Regards,
Severin

Revision history for this message
DaisyF (gerdloos) said :
#2

Solved with your input, thanks.

Running your suggestion gives :

user@laptop:~$ /usr/bin/hellanzb.py -c ~/.lottanzb/hellanzb.conf

/usr/lib/python2.6/site-packages/twisted/internet/_sslverify.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import itertools, md5
/usr/lib/python2.6/site-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/usr/lib/python2.6/site-packages/Hellanzb/Util.py:33: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message
Please install notify-python or disable Hellanzb.LIBNOTIFY_NOTIFY

After disabling Hellanzb.LIBNOTIFY_NOTIFY (=False) no more problems...

Again, thanks very much

Df

Revision history for this message
Severin H (severinh) said :
#3

You're welcome.