Project

General

Profile

Bug #2639

Support #2139: Check support for platform SL6

Migrate to hashlib module for SL6 compatibility

Added by Parag Mhashilkar over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
04/10/2012
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Duration:

Description

More deprecation messages are only visible if you disable factory/frontend startup script piping to /dev/null

Starting glideinWMS factory v1_0@GlideinFactory-branch_v2plus: /opt/glideinwms/factory/glideFactory.py:25: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
import popen2
/opt/glideinwms/factory/glideFactoryMonitorAggregator.py:16: DeprecationWarning: the sets module is deprecated
import sets
/opt/glideinwms/factory/glideFactoryConfig.py:115: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import pubCrypto,symCrypto,md5

History

#1 Updated by Burt Holzman over 8 years ago

  • Assignee changed from Parag Mhashilkar to Burt Holzman

#2 Updated by Igor Sfiligoi over 8 years ago

Are you sure hashlib is widely available?

[1533] gfactory@glidein-1 ~$ cat /etc/redhat-release
CentOS release 5.7 (Final)
[1532] gfactory@glidein-1 ~$ python
Python 2.4.3 (#1, Sep 21 2011, 19:55:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import hashlib

Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named hashlib

#3 Updated by Douglas Strain over 8 years ago

These changes look fine to me. To address Igor's comment, Burt's change imports from md5 if hashlib is unavailable.

#4 Updated by Parag Mhashilkar over 8 years ago

  • Status changed from New to Resolved
  • Target version changed from v2_7_x to v2_6

#5 Updated by Parag Mhashilkar over 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF