From: Joshua B. <jrb...@lb...> - 2007-10-26 13:31:57
|
Try the 2.0 final release, I think this has been fixed. -josh On Oct 25, 2007, at 5:12 PM, Scott Simpson wrote: > Howdy, > I'm having a problem with a large VMWare wsdl file. Using ZSI > 2.0rc3 the wsdl2py program generates the python files fine, but when > I attempt to import them, I get a NoneType error. First, this wsdl > is like almost a Meg. The traceback is also huge, so i'll give the > tail of it. I'm using python 2.4.4 on OS X 10.4.10 with ZSI 2.0rc3. > I got the wsdl from http://www.vmware.com/download/sdk/index.html > (login required, free registration). Any suggestions would be > greatly appreciated! > > Thanks, > Scott > > > Here is the last few lines:/Volumes/Core/development/vim/ > VimService_services_types.py in __init__(self, pname, ofwhat, extend, > restrict, attributes, **kw) > 2186 def __init__(self, pname, ofwhat=(), extend=False, > restrict=False, attributes=None, **kw): > 2187 ns = ns0.ResourceAllocationInfo_Def.schema > -> 2188 TClist = [ZSI.TCnumbers.Ilong(pname= > (ns,"reservation"), aname="_reservation", minOccurs=0, maxOccurs=1, > nillable=False, typed=False, encoded=kw.get("encoded")), > ZSI.TC.Boolean(pname=(ns,"expandableReservation"), > aname="_expandableReservation", minOccurs=0, maxOccurs=1, > nillable=False, typed=False, encoded=kw.get("encoded")), > ZSI.TCnumbers.Ilong(pname=(ns,"limit"), aname="_limit", minOccurs=0, > maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), > GTD("urn:vim2","SharesInfo",lazy=False)(pname=(ns,"shares"), > aname="_shares", minOccurs=0, maxOccurs=1, nillable=False, > typed=False, encoded=kw.get("encoded"))] > 2189 attributes = self.attribute_typecode_dict = > attributes or {} > 2190 if extend: TClist += ofwhat > > /Volumes/Core/development/vim/VimService_services_types.py in __init__ > (self, pname, ofwhat, extend, restrict, attributes, **kw) > 2435 ns0.SharesInfo_Def.__bases__ = tuple(bases) > 2436 > -> 2437 ns0.DynamicData_Def.__init__(self, pname, > ofwhat=TClist, extend=True, attributes=attributes, **kw) > 2438 > 2439 class TaskDescription_Def(TypeDefinition): > > /Volumes/Core/development/vim/VimService_services_types.py in __init__ > (self, pname, ofwhat, attributes, extend, restrict, **kw) > 44 def __init__(self, pname, ofwhat=(), > attributes=None, extend=False, restrict=False, **kw): > 45 ns = ns0.DynamicData_Def.schema > ---> 46 TClist = [ZSI.TC.String(pname=(ns,"dynamicType"), > aname="_dynamicType", minOccurs=0, maxOccurs=1, nillable=False, > typed=False, encoded=kw.get("encoded")), GTD > ("urn:vim2","DynamicProperty",lazy=False)(pname= > (ns,"dynamicProperty"), aname="_dynamicProperty", minOccurs=0, > maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get > ("encoded"))] > 47 self.attribute_typecode_dict = attributes or {} > 48 if extend: TClist += ofwhat > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Pywebsvcs-talk mailing list > Pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk > Also archived at http://groups.google.com/group/pywebsvcs |