Bug 507610

Summary: DeprecationWarning: the {sha|md5} module is deprecated; use the hashlib module instead
Product: Red Hat Enterprise Linux 6 Reporter: Alexander Todorov <atodorov>
Component: python-twisted-coreAssignee: Dave Malcolm <dmalcolm>
Status: CLOSED CURRENTRELEASE QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: azelinka, borgan, giallu, mbanas, mganisin, mnowak, notting, rwilliam, syeghiay, tcallawa
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-twisted-core-8.2.0-4.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 497783 Environment:
Last Closed: 2010-11-10 21:23:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander Todorov 2009-06-23 13:35:36 UTC
+++ This bug was initially created as a clone of Bug #497783 +++

Description of problem:

while installing via yum:

  Installing     : python-twisted-core                                                                                                                                                                                     10/15 
/usr/lib64/python2.6/site-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/usr/lib64/python2.6/site-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, sys
  Installing     : python-twisted-web                                                                                                                                                                                      11/15 
/usr/lib64/python2.6/site-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/usr/lib64/python2.6/site-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, sys


Version-Release number of selected component (if applicable):

python-twisted-core.x86_64 0:8.2.0-2.fc11
python-twisted-web.x86_64 0:8.2.0-2.fc11

How reproducible:

always

Actual results:

Deprecation warning.

Expected results:

No deprecation warning.

Additional info:

This is due to python2.6.

--- Additional comment from fedora-triage-list on 2009-06-09 10:38:15 EDT ---


This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 1 Alexander Todorov 2009-06-23 13:36:50 UTC
Filing against RHEl6. Affected packages are:
python-twisted-core-8.2.0-2.fc11.x86_64
python-twisted-names-8.2.0-2.fc11.x86_64
python-twisted-mail-8.2.0-2.fc11.x86_64
python-twisted-news-8.2.0-2.fc11.x86_64
python-twisted-conch-8.2.0-2.fc11.x86_64
python-twisted-web-8.2.0-2.fc11.x86_64
python-twisted-words-8.2.0-2.fc11.x86_64
python-twisted-lore-8.2.0-2.fc11.x86_64


None of them is a component in Bugzilla so filing against distribution. 

Either fix the imports in Python or at least silence the warnings so we have clean install.log

Comment 3 Bill Nottingham 2009-06-23 16:58:00 UTC
Moving to beta target.

Comment 4 Dave Malcolm 2009-10-16 17:43:40 UTC
Reassigning component from "python" to "python-twisted-core"

Looks like 
  /usr/lib[64]/python2.6/site-packages/twisted/python/filepath.py
  /usr/lib[64]/python2.6/site-packages/twisted/persisted/sob.py

should be ported from using sha and md5 and to use hashlib instead.

Seems to have been partially fixed in Fedora since this bug was filed (see bug 497783).

Comment 5 Michal Nowak 2009-11-26 15:56:59 UTC
*** Bug 541648 has been marked as a duplicate of this bug. ***

Comment 6 Gianluca Sforna 2010-04-06 22:32:47 UTC
So RHEL 6 is going to include twisted? 
I hope you are in time for pushing version 10.0 (see bug 572372) before you commit to maintain version 8.2 for 7+ years...

Comment 10 Michal Nowak 2010-06-02 09:25:24 UTC
(Not saying I am signing in to test this but) I remember I saw those warnings when running Rhythmbox in terminal with all plugins installed and enabled.

Comment 13 releng-rhel@redhat.com 2010-11-10 21:23:42 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.