Re: normalize in PyXML version hell (was: ...)

Harlan Stenn <[email protected]>
Newsgroups gmane.comp.sysutils.ark.devel
Message-ID <[email protected]>
Thanks, Will.

Somewhat better:

root@dog# ./try-ark 
./try-ark: warning: this script may be overly paranoid and, um, wrong...
+ ./arkcmd package reveal --hosts=dog --verbose --use-deps=max arkbase
here
there
here
there
here
Traceback (most recent call last):
  File "./arkcmd", line 41, in ?
    things_mgr.doToolSubcommand()
  File "./ark/thing.py", line 153, in doToolSubcommand
    victims       = self.unpackSpecs(ark_ctrl.cmdLineNonOptions())
  File "./ark/thing.py", line 86, in unpackSpecs
    thing = self.lookup(thing_name,team_id)
  File "./ark/thing.py", line 56, in lookup
    thing = self.create1(team_id,thing_name)
  File "./ark/package.py", line 38, in create1
    return ArkPkg(team_id, name)
  File "./ark/package.py", line 70, in __init__
    ArkThing.__init__(self,team_id,'package',name) # base class init, first...
  File "./ark/thing.py", line 217, in __init__
    for p in self._imm_prototypes():
  File "./ark/thing.py", line 312, in _imm_prototypes
    imm_protos.append(self._things_mgr.lookup(name,team_id=team_id))
  File "./ark/thing.py", line 56, in lookup
    thing = self.create1(team_id,thing_name)
  File "./ark/package.py", line 38, in create1
    return ArkPkg(team_id, name)
  File "./ark/package.py", line 70, in __init__
    ArkThing.__init__(self,team_id,'package',name) # base class init, first...
  File "./ark/thing.py", line 206, in __init__
    (self._is_prototype, self._xmlf) = xml_file_mgr.lookup(team_id,type,name)
  File "./ark/xmlfile.py", line 43, in lookup
    stuff = xmlf.read()
  File "./ark/xmlfile.py", line 101, in read
    doc  = xml.dom.minidom.parse(filename)
  File "/usr/local/lib/python2.0/site-packages/_xmlplus/dom/minidom.py", line 462, in parse
    return _doparse(pulldom.parse, args, kwargs)
  File "/usr/local/lib/python2.0/site-packages/_xmlplus/dom/minidom.py", line 456, in _doparse
    toktype, rootNode = events.getEvent()
  File "/usr/local/lib/python2.0/site-packages/_xmlplus/dom/pulldom.py", line 171, in getEvent
    buf=self.stream.read(self.bufsize)
AttributeError: read
root@dog# 

I need to fall asleep soon...

H
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.