Maybe you have a malformed XML file in /usr/share/indi. You could add a new line to driver.py in order to see what xml file is being processed, like this:
for group in root: print(fname) family = group.attrib['group'] ...