Skip to content

Error 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' when listing log in Python 3.9.x #175

Open

Description

@mellotanica

when accessing a repository log with default_log() function using Python 3.9 an exception is risen, the used function seems to have been removed from xml library:

https://docs.python.org/3.8/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.getchildren

Activity

  1. mellotanica commented on Jan 25, 2021

    @mellotanica
    Author

    looking at the master branch code, the issue has already been solved.
    yet the latest release package does not work with python 3.9

  2. Grandement commented on Sep 8, 2021

    @Grandement

    I have noticed that the fix is not included in the zip or tar.gz file. It is mentioned in the change notes but unfortunately not in the final archive. Can you create a new release which includes the fix? In other words the common.py file in the archives still contains the getchild stuff.

  3. jimmydevine commented on Dec 3, 2022

    @jimmydevine

    no longer maintained?

  4. mj-fox commented on Nov 8, 2024

    @mj-fox

    Sadly still an issue in python 3.11, package installed via PIP

  5. JavaScriptDude commented on Sep 1, 2025

    @JavaScriptDude

    Confirmed issue in 3.11. Confirmed its working fine in 3.7.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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