Deprecated module md5 with python 2.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| python-support (Debian) |
Fix Released
|
Unknown
|
||
| python-support (Ubuntu) |
High
|
Unassigned | ||
| Jaunty |
High
|
Unassigned |
Bug Description
Binary package hint: python-support
Easy one to fix...
/usr/bin/
import os,os.path,
Related branches
Adam Conrad (adconrad) wrote : | #1 |
Changed in python-support (Ubuntu): | |
importance: | Undecided → Critical |
status: | New → Confirmed |
Adam Conrad (adconrad) wrote : | #2 |
The traceback looks like python's trying to import some backward-compat code and failing miserably, so maybe the critically urgent fix belongs to python here, rather than python-support.
Adam Conrad (adconrad) wrote : | #3 |
Nevermind the severity inflation. The build logs where I saw the error look to be a case of "the package was partially removed, and python2.6 was no longer installed, but a less-than-clever debian/rules file conditionally calls dh_pysupport if the binary exists", hence the spectacular explosion.
Changed in python-support (Ubuntu Jaunty): | |
importance: | Critical → Low |
Launchpad Janitor (janitor) wrote : | #4 |
This bug was fixed in the package python-support - 0.8.7ubuntu3
---------------
python-support (0.8.7ubuntu3) jaunty; urgency=low
* use hashlib instead of the md5 module (LP: #340757)
* depend on python2.5 (because of hashlib)
-- Michael Vogt <email address hidden> Wed, 08 Apr 2009 22:17:49 +0200
Changed in python-support (Ubuntu Jaunty): | |
status: | Confirmed → Fix Released |
Kyle Ambroff (kambroff) wrote : | #5 |
I'm going to reopen this, since the fix in 0.8.7 is not correct. The attached one-liner patch will correct the problem.
Changed in python-support (Ubuntu Jaunty): | |
status: | Fix Released → Confirmed |
Steve Langasek (vorlon) wrote : | #6 |
This causes build failures for all packages using dh_pysupport, so raising to high.
I've uploaded the fix, waiting for another release team member to review.
Changed in python-support (Ubuntu Jaunty): | |
importance: | Low → High |
status: | Confirmed → Fix Committed |
Launchpad Janitor (janitor) wrote : | #7 |
This bug was fixed in the package python-support - 0.8.7ubuntu4
---------------
python-support (0.8.7ubuntu4) jaunty; urgency=low
* Fix invocation of hashlib md5 in pysupport-
Kyle Ambroff <email address hidden> for the fix. LP: #340757.
-- Steve Langasek <email address hidden> Fri, 10 Apr 2009 01:36:33 +0000
Changed in python-support (Ubuntu Jaunty): | |
status: | Fix Committed → Fix Released |
Changed in python-support (Debian): | |
status: | Unknown → Fix Released |
This is no longer throwing warnings on builds, but rather throwing errors and causing cascading build failures in jaunty-autotest:
dh_pysupport -v movemodules debian/libaa1-dev pysupport- movemodules: 8: DeprecationWarning: the md5 module is deprecated; use hashlib instead md5,re, sys pysupport- movemodules" , line 8, in <module> md5,re, sys python2. 6/md5.py" , line 10, in <module> python2. 6/hashlib. py", line 136, in <module> constructor( 'md5') python2. 6/hashlib. py", line 63, in __get_builtin_ constructor
pysupport-
/usr/bin/
import os,os.path,
Traceback (most recent call last):
File "/usr/bin/
import os,os.path,
File "/usr/lib/
from hashlib import md5
File "/usr/lib/
md5 = __get_builtin_
File "/usr/lib/
import _md5
ImportError: No module named _md5
dh_pysupport: command returned error code 256
make: *** [install] Error 1
This needs to be sorted out ASAP in either python-support or python2.6, I'd guess, if we want to be able to rebuild anything that build-depends on python-support after the release. :/