python-zsi: wsdl2py SplitQName(self.attributes.get(k)): "TypeError: 'NoneType "object is not iterable"

Bug #548179 reported by Paul Sladen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zsi (Ubuntu)
New
Undecided
Unassigned

Bug Description

Errors out in SplitQName()/setAttributes() when called from wsdl2py:

$ wsdl2py api2.example.com.wsdl
/usr/lib/pymodules/python2.6/ZSI/resolvers.py:7: DeprecationWarning: the multifile module has been deprecated since Python 2.5
  import multifile, mimetools, urllib
/usr/lib/pymodules/python2.6/ZSI/wstools/XMLSchema.py:3103: DeprecationWarning: object.__init__() takes no parameters
  tuple.__init__(self, args)
Error loading api2.example.com.wsdl:
 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/ZSI/generate/commands.py", line 135, in wsdl2py
    wsdl = load(location)
  File "/usr/lib/pymodules/python2.6/ZSI/wstools/WSDLTools.py", line 53, in loadFromFile
    wsdl = self.loadFromStream(file)
  File "/usr/lib/pymodules/python2.6/ZSI/wstools/WSDLTools.py", line 34, in loadFromStream
    wsdl.load(document)
  File "/usr/lib/pymodules/python2.6/ZSI/wstools/WSDLTools.py", line 286, in load
    schema = reader.loadFromNode(WSDLToolsAdapter(self), item)
  File "/usr/lib/pymodules/python2.6/ZSI/wstools/XMLSchema.py", line 102, in loadFromNode
    schema.load(reader)
  File "/usr/lib/pymodules/python2.6/ZSI/wstools/XMLSchema.py", line 1283, in load
    tp.fromDom(childNode)
  File "/usr/lib/pymodules/python2.6/ZSI/wstools/XMLSchema.py", line 2491, in fromDom
    self.content.fromDom(contents[indx])
  File "/usr/lib/pymodules/python2.6/ZSI/wstools/XMLSchema.py", line 2240, in fromDom
    content[-1].fromDom(i)
  File "/usr/lib/pymodules/python2.6/ZSI/wstools/XMLSchema.py", line 1953, in fromDom
    self.setAttributes(node)
  File "/usr/lib/pymodules/python2.6/ZSI/wstools/XMLSchema.py", line 740, in setAttributes
    prefix, value = SplitQName(self.attributes.get(k))
TypeError: 'NoneType' object is not iterable

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.