You are not logged in.
Pages: 1
Hi everyone!
I've been rooting around the forums, Wiki and Google for ages now and I can't seem to find any useful info. I have Hellanzb and LottaNZB installed on my Arch box, with Python 2.6. I'm getting warnings about using hashlib due to deprecation which is all well and good, but it prevents LottaNZB from doing anything else. If I run as root the warning is ignored, but clearly I don't want to run Hella/Lotta as root, and I don't really want to roll back to 2.5.
Any other suggestions?
Thanks in advance!
![]()
Offline
The hashlib warnings are just warnings but they should not disappear when you run them as root. There must be something else going on. Can you post actual output?
Offline
When trying to run in standalone mode the following appears in the GUI:
/usr/lib/python2.6/site-packages/twisted/internet/_sslverify.py:6: DeprecationWarning: the md5 module is deprecated; use hashlib instead.
Console output looks like this:
/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
However, for some weird reason when run as root, the /usr/lib/python2.6/site-packages/twisted/internet/_sslverify.py:6: DeprecationWarning: the md5 module is deprecated; use hashlib instead. does not appear!
Offline
Anyone else had any issues?
Offline
diaz ~ $ lottanzb
Xlib: extension "Generic Event Extension" missing on display ":0.0".
Xlib: extension "Generic Event Extension" missing on display ":0.0".
Xlib: extension "Generic Event Extension" missing on display ":0.0".
Xlib: extension "Generic Event Extension" missing on display ":0.0".
Xlib: extension "Generic Event Extension" missing on display ":0.0".
Xlib: extension "Generic Event Extension" missing on display ":0.0".
00:47:49 environ No pt_PT translation found for domain kiwi
00:47:50 environ overriding default domain, was lottanzb
00:47:51 lottanzb.core A iniciar o LottaNZB 0.4.1...
00:47:55 lottanzb.modes.standalone Daemon HellaNZB iniciado.
00:47:57 lottanzb.backend Ligado ao daemon HellaNZB em localhost:8760.
00:47:57 lottanzb.modes Definir o modo de utilização para 'Autónomo'.
00:48:45 lottanzb.modes.standalone Daemon HellaNZB parado.
00:48:45 lottanzb.modes Terminado o modo de utilização 'Autónomo'.
/usr/lib/python2.6/site-packages/twisted/internet/_sslverify.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import itertools, md5
diaz ~ $ Xlib: extension "Generic Event Extension" missing on display ":0.0".
Xlib: extension "Generic Event Extension" missing on display ":0.0".
Xlib: extension "Generic Event Extension" missing on display ":0.0".
Xlib: extension "Generic Event Extension" missing on display ":0.0".
Xlib: extension "Generic Event Extension" missing on display ":0.0".
Xlib: extension "Generic Event Extension" missing on display ":0.0".
/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
diaz ~ $i think i can confirm this...
Offline
Sorry to keep going on but can anyone help with this? I've figured out that the issue is with HellaNZB not the Lotta front end, LottaNZB doesn't work because the Hellanzb daemon fails to start, this is due to the deprecation problem. If started as root there is no issue, but again this is not really an option and I can't roll back to Python 2.5 because too many things on my system depend on 2.6.
I've tried to use hashlib within the Hellanzb source code instead of md5 but no luck.
Anyone else got any suggestions?
Thanks in advance!
Offline
OK, for anyone that needs it, here's a quick fix:
Manually enter your configuration settings in
/etc/hellanzb.confand be sure to use a directory that you have write access to (somewhere in your home folder is a good idea).
Fire up Hellanzb.
Then fire up LottaNZB and in the Edit menu select Usage mode, pick local front end.
Seems to be OK so far, some other tweaks were required but it turns out that it's not the deprecation that is causing issues.
Offline
Hi there. I'm sure that there isn't any problem with LottaNZB and Python 2.6. I've been using it myself (on a Gentoo system) for a month now. All I get is some warnings. Those should not prevent LottaNZB from launching..
Can you please fill a bug report on http://www.launchpad.net/lottanzb
Thanks!
Just figured, it isn't a bug with LottaNZB. It's hellaNZB's fault. The deprecation warnings stop Lotta from starting hella up in stand alone mode. I've submitted a report anyway, but I'm pretty sure the issue is with Hellanzb, which clearly needs updating!
Last edited by scottuss (2009-03-02 11:33:11)
Offline
I don't think that it's entirely HellaNZB's fault, because importing the md5 module using Python 2.6 doesn't really cause the application to quit, but only prints out a deprecation _warning_. When LottaNZB starts the HellaNZB daemon in stand-alone mode, it checks if there are any messages in the error output stream (stderr) and if so, fires up the mode selection dialog. In this case, LottaNZB might just be overreacting.
This is just a theory and it might be wrong. I'll give it a try on my own.
Offline
However, it might still be a good idea to write a patch that fixes the deprectation warning while preserving the Python <2.6 compatibility. One could send it to the HellaNZB developers.
Offline
Bad news: I couldn't reproduce this problem on my Jaunty machine with Python 2.6.1. It looks like the deprecation warning isn't printed out to the error output stream and therefore launching LottaNZB in stand-alone mode works just fine for me. The deprecation warnings appear on the console as soon as I close LottaNZB.
Looks like this problem needs further investigation.
Offline
Just created a patch file that should at least fix the deprecation warnings in HellaNZB's code for Python 2.6. This includes the usage of the md5 module as well as the usage of BaseException.message. Of course, it does not fix the deprecation warnings caused by the old-fashioned Twisted code.
Offline
I'll take a look at Hella and Twisted and submit any bug reports, I've got to do some work on them for a University project anyway
Offline
I created a patch that should fix the HellaNZB deprecation warnings but not those that origin from Twisted: http://hellanzb.com/trac/hellanzb/ticket/419
@scottuss: Any news on the issue? Did you figure out why these deprecation warnings prevent LottaNZB from starting HellaNZB properly? I wonder if the HellaNZB daemon is actually running when this error message appears in LottaNZB (which would mean that it's LottaNZBs fault).
Offline
HellaNZB is running at the time, the error messages are sent to Lotta. I'll try the patch today and see what happens. Sorry it took so long to reply
Offline
You mean that LottaNZB successfully starts HellaNZB but thinks that it failed because of the deprecation warnings?
In this case, you might want to put some "print" statements in the startHella method of LottaNZB's file lottanzb/modes/standalone.py (without applying the HellaNZB patch) to see what happens. I suspect that in your case the block "if process.wait():" is executed because of a nonzero return value (which is weird :-/). Wonder what the exit code is and what the content of stderr ist.
Offline
The problem should have been fixed in the latest development code. Refer to https://bugs.edge.launchpad.net/lottanzb/+bug/336639 for more information.
Offline
Pages: 1