Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • meld meld
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 187
    • Issues 187
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • meldmeld
  • Issues
  • #526

Closed
Open
Created Nov 12, 2020 by Tom Hughes@tomhughes

Python error running meld on an svn checkout

Running meld on an svn checkout results in an error parsing the XML output of the svn status command:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/meld/task.py", line 110, in iteration
    ret = task()
  File "/usr/lib/python3.9/site-packages/meld/vc/_vc.py", line 277, in refresh_vc_state
    self._update_tree_state_cache(path)
  File "/usr/lib/python3.9/site-packages/meld/vc/svn.py", line 188, in _update_tree_state_cache
    for entry in (t for t in target.getchildren() if t.tag == "entry"):
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'

This is with meld 3.21.0 and python 3.9.0 and appears to be caused by getchildren having been removed - replace it with iter gets things working again. Note that there are actually two uses a few lines apart, both of which need replacing.

Edited Nov 12, 2020 by Tom Hughes
Assignee
Assign to
Time tracking