DeprecationWarning: the sha module is deprecated; use the hashlib module instead

Bug #368787 reported by Eero
54
This bug affects 9 people
Affects Status Importance Assigned to Milestone
apt-p2p (Debian)
Fix Released
Unknown
apt-p2p (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: apt-p2p

apt-p2p version 0.1.5 gives the following warning message when (re)starting it

$ sudo /etc/init.d/apt-p2p restart
Stopping apt-p2p.
Starting apt-p2p/var/lib/python-support/python2.6/apt_p2p_Khashmir/DHT.py:8: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import os, sha, random
.

Tags: patch
Changed in apt-p2p (Ubuntu):
status: New → Confirmed
Revision history for this message
Angel Guzman Maeso (shakaran) wrote :

Still remaining on Ubuntu 9.10 alpha 6.

Daniel Hahler (blueyed)
Changed in apt-p2p (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Revision history for this message
Kerry Hatcher (kerry.hatcher) wrote :

Got this while installing apt-p2p on Ubuntu 10.04:

Processing triggers for python-central ...
Setting up apt-p2p (0.1.5) ...
Starting apt-p2p/usr/lib/pymodules/python2.6/apt_p2p_Khashmir/DHT.py:8: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import os, sha, random
.

Revision history for this message
Jannich Brendle (jannich-bredsaal) wrote :

A patch correcting the problem.

tags: added: patch
Changed in apt-p2p (Debian):
status: Unknown → New
Revision history for this message
Stefan Nagy (stefan-nagy) wrote :

Problem seems to be fixed in Natty (apt-p2p 0.1.6).
Besides, 'apt-p2p --version' still says 0.1.5...

Revision history for this message
Angel Guzman Maeso (shakaran) wrote :

Installing today on quantal (apt-p2p_0.1.6_all.deb) the DeprecationWarning seems gone or fixed.

But after 2 years, still wrong version number showed:

$ apt-p2p --version
apt-p2p 0.1.5

Is the project abandoned? It looks promising, but there are not enough activity.

Changed in apt-p2p (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.