[Python-apps-team] Bug#977324: doesn't run: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'

John Scott jscott at posteo.net
Sun Dec 13 23:35:25 GMT 2020


Package: ocrfeeder
Version: 0.8.3-1
Severity: important

Except that I'm on a KDE Plasma system and might be missing some GNOMEy libraries,
I can't think of any particularities of my Bullseye system. I just installed
OCRFeeder and right away it says
Traceback (most recent call last):
  File "/usr/bin/ocrfeeder", line 36, in <module>
    studio = Studio()
  File "/usr/lib/python3/dist-packages/ocrfeeder/studio/studioBuilder.py", line 76, in __init__
    self.ocr_engines_manager.makeEnginesFromFolder(user_engines_folder)
  File "/usr/lib/python3/dist-packages/ocrfeeder/feeder/ocrEngines.py", line 197, in makeEnginesFromFolder
    engine = self.getEngineFromXml(xml_file)
  File "/usr/lib/python3/dist-packages/ocrfeeder/feeder/ocrEngines.py", line 236, in getEngineFromXml
    for child in root_node.getchildren():
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'

Maybe this was broken by python3-lxml?

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (2, 'unstable'), (1, 'testing-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-4-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_USER, TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ocrfeeder depends on:
ii  ghostscript           9.52.1~dfsg-1
ii  gir1.2-goocanvas-2.0  2.0.4-1
ii  gir1.2-gtk-3.0        3.24.23-3
ii  gir1.2-gtkspell3-3.0  3.0.10-1
ii  iso-codes             4.5.0-1
ii  python3               3.9.0-4
ii  python3-enchant       3.0.1-1
ii  python3-gi            3.38.0-1+b2
ii  python3-lxml          4.6.2-1
ii  python3-odf           1.4.1-1
ii  python3-pil           8.0.1-1+b1
ii  python3-reportlab     3.5.56-1
ii  python3-sane          2.8.3-5
ii  tesseract-ocr         4.1.1-2+b1

Versions of packages ocrfeeder recommends:
ii  unpaper  6.1-2+b2
ii  yelp     3.38.2-1

ocrfeeder suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/python-apps-team/attachments/20201213/a225999b/attachment.sig>


More information about the Python-apps-team mailing list