Skip to content

AttributeError: 'NoneType' object has no attribute 'text' #34

@huyi666r

Description

@huyi666r

issue1

  • **OS:**win11

  • Error: Traceback (most recent call last):
    File "roLabelImg.py", line 1142, in openNextImg
    self.loadFile(filename)
    File "roLabelImg.py", line 933, in loadFile
    self.loadPascalXMLByFilename(xmlPath)
    File "roLabelImg.py", line 1287, in loadPascalXMLByFilename
    tVocParseReader = PascalVocReader(xmlPath)
    File "E:\dt\roLabelImg-master\libs\pascal_voc_io.py", line 207, in init
    self.parseXML()
    File "E:\dt\roLabelImg-master\libs\pascal_voc_io.py", line 264, in parseXML
    if typeItem.text == 'bndbox':
    AttributeError: 'NoneType' object has no attribute 'text'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions