Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no attribute 'getchildren' Error while parsing drawio graph #13

Open
sfc-gh-jfan opened this issue Nov 6, 2020 · 1 comment
Open

no attribute 'getchildren' Error while parsing drawio graph #13

sfc-gh-jfan opened this issue Nov 6, 2020 · 1 comment

Comments

@sfc-gh-jfan
Copy link

Scenario:

  1. The error happened on both pip installed materialize-tool and git cloned repo tool.
  2. already using the latest dfd library and the graph follows the rule(no trust boundary, no bi-directional arrow, etc)
  3. Don't see any clear issue on the graph itself

Error message:

materialize-threats (master) $ python3 test.py --diagram /Users/jfan/Documents/test_TM1.drawio 
Traceback (most recent call last):
  File "/Users/jfan/Documents/Github/materialize-threats/test.py", line 4, in <module>
    TM.materialize()
  File "/Users/jfan/Documents/Github/materialize-threats/materialize_threats/materialize.py", line 115, in materialize
    graph = MxUtils.parse_from_xml(file=args.parse_args().diagram)
  File "/Users/jfan/Documents/Github/materialize-threats/materialize_threats/mx/utils/MxUtils.py", line 102, in parse_from_xml
    cells = diagram_root.find(MxConst.ROOT).getchildren()
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
@Jo-Con-El
Copy link

Could you attach a graph that triggers this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants