[Jaunty 9.04 alpha5] DeprecationWarning: when starting Hellanzb

Bug #335993 reported by Falk
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
hellanzb (Debian)
Fix Released
Unknown
hellanzb (Ubuntu)
Fix Released
Medium
Andreas Wenning

Bug Description

Binary package hint: hellanzb

When starting up hellanzb:

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

 apt-cache policy hellanzb
hellanzb:
  Installed: 0.13-3ubuntu2
  Candidate: 0.13-3ubuntu2
  Version table:
 *** 0.13-3ubuntu2 0
        500 http://archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

Related branches

Revision history for this message
nyarnon (cabal) wrote :

I'm having the same problem here, obviously HellaNZB is getting behind python coding standards. I tried the nightly build but I'm afraid my python isn't good enough to create a working build. Any one tried it?

eroor's on startup:

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

Changed in hellanzb (Ubuntu):
status: New → Confirmed
Revision history for this message
Slug (neilbyrne) wrote :

Has anyone got a fix for this ?

Revision history for this message
Thomas B (tbrownback) wrote :
Revision history for this message
Alessio Treglia (quadrispro) wrote :
Revision history for this message
Alessio Treglia (quadrispro) wrote :

A package is building in my PPA, please test when ready.

Changed in hellanzb (Ubuntu):
importance: Undecided → Low
status: Confirmed → New
Revision history for this message
Alessio Treglia (quadrispro) wrote :
Revision history for this message
Scott Kitterman (kitterman) wrote :

Ack. Please upload after you've tested and I'll review the diff in the queue.

Revision history for this message
Alessio Treglia (quadrispro) wrote :

Now Hellanzb warnings are not being shown, but Twisted continue to show some warning messages.

Perhaps we should touch twisted.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Twisted is in Main, so it's too late.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hellanzb - 0.13-3ubuntu3

---------------
hellanzb (0.13-3ubuntu3) jaunty; urgency=low

  * Add debian/patches/100-python_26_fixes.dpatch patch to fix Python 2.6
    deprecation warnings (LP: #335993).
    Patch taken from http://www.hellanzb.com/trac/hellanzb/ticket/419.

 -- Alessio Treglia <email address hidden> Sun, 19 Apr 2009 23:05:43 +0200

Changed in hellanzb (Ubuntu):
status: New → Fix Released
Revision history for this message
Mark Bailey (markjohnbailey) wrote :

The patch from http://www.hellanzb.com/trac/hellanzb/ticket/419 is bad and breaks hellanzb in Jaunty (simply does not work).
It treats hashlib.md5 as a drop in replacement for the old md5 lib which it is not, causing an AttributeError when it attempts to call md5.new()

Revision history for this message
Severin H (severinh) wrote :

Here's a fixed version of the patch. It would be awesome if this fix could be uploaded to Jaunty before the release.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

I've uploaded a package to https://launchpad.net/~andreas-wenning/+archive/experimental that should fix this. Can you test that it works correctly with the new changes?

Changed in hellanzb (Ubuntu):
assignee: nobody → andreas-wenning
status: Fix Released → In Progress
Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Looks like the PPA-builders are lacking; .deb uploaded here:
http://awen.dk/packages/hellanzb/

Revision history for this message
Severin H (severinh) wrote :

The updated package seems to work fine. I've built one by myself before uploading the fixed patch file.

I'll attach the fixed patch file to the upstream bug report.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Debdiff fixing this is attached. It looks to be too late to get into jaunty release; but it should be able to pretty quick get through a stable release update as soon as it opens after release.

Changed in hellanzb (Ubuntu):
importance: Low → Medium
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 335993] Re: [Jaunty 9.04 alpha5] DeprecationWarning: when starting Hellanzb

As said on IRC: We can squeeze it in and ack from motu-release.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hellanzb - 0.13-3ubuntu4

---------------
hellanzb (0.13-3ubuntu4) jaunty; urgency=low

  * Modify debian/patches/100-python_26_fixes.dpatch to work as expected.
    (LP: #335993)

 -- Andreas Wenning <email address hidden> Tue, 21 Apr 2009 11:56:16 +0200

Changed in hellanzb (Ubuntu):
status: In Progress → Fix Released
Changed in hellanzb (Debian):
status: Unknown → New
Changed in hellanzb (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.