KrzyHonk / bpmn-python

Project for creating a Python library that allows to import/export BPMN diagram (as an XML file) and provides a simple visualization capabilities
GNU General Public License v3.0
66 stars 47 forks source link

AttributeError: 'Graph' object has no attribute 'node' #42

Open ruicalheno133 opened 4 years ago

ruicalheno133 commented 4 years ago

Graph Object methods removed (marked as deprecated 2.1):

Source

lovehina13 commented 4 years ago

I have the same problem here. I can join a patch file or submit a pull request to fix them.

wojteklupin commented 3 years ago

In bpmn_diagram_rep.py everywhere where self.diagram_graph.node is used, there should be self.diagram_graph._node. This fixes the bug.

DanieleGranata94 commented 2 years ago

In bpmn_diagram_rep.py everywhere where self.diagram_graph.node is used, there should be self.diagram_graph._node. This fixes the bug.

thank God you exist.

anonymous-1-a commented 1 year ago

pip install networkx==1.11

ali6134 commented 1 year ago

I got the same error and try to fix it with the underscore apporach, but it doesn't work. It says i try to access a protected member of class. Did someone run the tool successfuly?

delcroip commented 1 month ago

Installing that version worked for me

pip install git+https://github.com/soniaradon/bpmn-python.git