Closed Miguellissimo closed 5 years ago
The problem is caused here. tree[n].tag
expects to hold a string which it does not in the code above. I don't know how to get it done across the different python versions but it would be nice to always get the string representation from the object.
You are right. Its an annoying issue to address encoding across python versions. But the problem is more severe. I will fix it later. Thanks
I just stumbled over the same problem, but I wonder why is this a problem across different python versions. To fix it you just need to add str(nid)
/ str(cid)
while constructing the state and connection.
OK Thanks @villmow
Btw. if your node tag contains quotes, this will produce an invalid dot file. You should escape quotes in the tag before formatting.
When creating a tree which does not hold string objects the export to the dot file format crashes. See the minimal working example below