小编Rex*_*unt的帖子

解析XML异常

我是python的新手,非常需要帮助!我有一些我无法弄清楚的错误.我在mac上使用python 2.7.以下是错误列表:

Traceback (most recent call last):
  File "minihiveosc.py", line 378, in <module>
    swhive = SWMiniHiveOSC( options.host, options.hport, options.ip, options.port, options.minibees, options.serial, options.baudrate, options.config, [1,options.minibees], options.verbose, options.apimode )
  File "minihiveosc.py", line 280, in __init__
    self.hive.load_from_file( config )
  File "/Users/Puffin/Documents/python/pydon/pydon/pydonhive.py", line 396, in load_from_file
    hiveconf = cfgfile.read_file( filename )
  File "/Users/Puffin/Documents/python/pydon/pydon/minibeexml.py", line 116, in read_file
    tree = ET.parse( filename )
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1183, in parse
    tree.parse(source, parser)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
    parser.feed(data)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1643, in feed …
Run Code Online (Sandbox Code Playgroud)

python xml parsing module elementtree

2
推荐指数
1
解决办法
4418
查看次数

标签 统计

elementtree ×1

module ×1

parsing ×1

python ×1

xml ×1