Closed fhanif-dincloud closed 10 years ago
This is actually an issue with the ElementTree API. I make use of the _registernamespace method (https://docs.python.org/2/library/xml.etree.elementtree.html#xml.etree.ElementTree.register_namespace). Unfortunately, this method was introduced as part of Python 2.7 and doesn't support previous versions.
JFTR one can get a newer ElementTree that supports register_namespace()
on CentOS 6 by doing sudo pip install --upgrade lxml
(with a few prerequisites satisfied), but you also have to make sure the import
logic tries the one in lxml
in addition to the one from xml.etree
.
As per my understanding, this issue is only on CentOS machines and having python 2.6.6. What is the best way to come out from this. Further more, here is the exception location.
/usr/lib/python2.6/site-packages/Py_Authorize-1.2.2.0-py2.6.egg/authorize/apis/authorize_api.py in, line 20
Please respond this with some best possible solutions. I am restricted to use CentOS.