Project

General

Profile

Bug #11440

The new factory configuration is not compatible with python 2.4

Added by Marco Mambelli almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
01/19/2016
Due date:
% Done:

0%

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

Description

The new code uses MutableMapping.
Python documentation is not completely clear but MutableMapping is not available in python 2.4 (it is on 2.6).

The error is visible at upgrade/reconfig:

[root@fermicloud ~]# service gwms-factory upgrade
Using default factory config file: /etc/gwms-factory/glideinWMS.xml
Traceback (most recent call last):
  File "/usr/sbin/reconfig_glidein", line 30, in ?
    from glideinwms.creation.lib import factoryXmlConfig
  File "/usr/lib/python2.4/site-packages/glideinwms/creation/lib/factoryXmlConfig.py", line 3, in ?
    import xmlConfig
  File "/usr/lib/python2.4/site-packages/glideinwms/creation/lib/xmlConfig.py", line 83, in ?
    class DictElement(Element, collections.MutableMapping):
AttributeError: 'module' object has no attribute 'MutableMapping'
Upgrading the factory                                      [FAILED]

History

#1 Updated by Marco Mambelli almost 5 years ago

  • Status changed from Assigned to Feedback
  • Assignee changed from Marco Mambelli to Parag Mhashilkar

Changes are in v3/11440
replacing collections.MutableMapping w/ UserDict.DictMixin when in Python 2.4
function to convert iterable to dictionary when in Py 2.4 (MutableMapping is a mapping while DictMixin is only an iterable)

Back in december we discussed about dropping SL5 compatibility.
This patch is necessary to keep it.
The other option is to support only SL6 (python >= 2.6)

#2 Updated by Marco Mambelli almost 5 years ago

  • Target version set to v3_2_12_1
  • First Occurred set to v3_2_12

#3 Updated by Parag Mhashilkar almost 5 years ago

looks good to merge

#4 Updated by Marco Mambelli almost 5 years ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Parag Mhashilkar to Marco Mambelli

#5 Updated by Parag Mhashilkar almost 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF