Document xml parsing issue due to lower version of python 2.7 Closes #966
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/57913fce Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/57913fce Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/57913fce Branch: refs/heads/trunk Commit: 57913fceba52b8100425c0a151aa759936d70545 Parents: c778f1d Author: Samuel Chong <[email protected]> Authored: Tue Jan 17 09:30:40 2017 +1100 Committer: Anthony Shaw <[email protected]> Committed: Tue Feb 21 17:17:35 2017 +0100 ---------------------------------------------------------------------- docs/compute/drivers/dimensiondata.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/57913fce/docs/compute/drivers/dimensiondata.rst ---------------------------------------------------------------------- diff --git a/docs/compute/drivers/dimensiondata.rst b/docs/compute/drivers/dimensiondata.rst index 098f727..ac7a947 100644 --- a/docs/compute/drivers/dimensiondata.rst +++ b/docs/compute/drivers/dimensiondata.rst @@ -66,3 +66,25 @@ API Docs :inherited-members: .. _`API`: http://cloud.dimensiondata.com/au/en/services/public-cloud/api + + +Debugging Tips +-------------- + +**Problem description: XML parsing issue for python version 2.7.5** + + *Example*:: + + ip_address_collection=ip_addr_collection, child_ip_address_lists=None) + File "/Users/andrewdas/Documents/Python/lib/python2.7/site-packages/libcloud/compute/drivers/dimensiondata.py", line 3185, in ex_edit_ip_address_list + 'xmlns:xsi': "http://www.w3.org/2001/XMLSchema-instance" + File "lxml.etree.pyx", line 2912, in lxml.etree.Element (src/lxml/lxml.etree.c:68681) + File "apihelpers.pxi", line 140, in lxml.etree._makeElement (src/lxml/lxml.etree.c:15242) + File "apihelpers.pxi", line 128, in lxml.etree._makeElement (src/lxml/lxml.etree.c:15125) + File "apihelpers.pxi", line 287, in lxml.etree._initNodeAttributes (src/lxml/lxml.etree.c:17012) + File "apihelpers.pxi", line 296, in lxml.etree._addAttributeToNode (src/lxml/lxml.etree.c:17180) + File "apihelpers.pxi", line 1583, in lxml.etree._attributeValidOrRaise (src/lxml/lxml.etree.c:29377) + ValueError: Invalid attribute name u'xmlns:xsi' + + *Solution*: + - Upgrade to python version 2.7.12 and above \ No newline at end of file
