The new factory configuration is not compatible with python 2.4
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]
#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)