You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use write_svg(), I get the following error:
File "C:\Users\Me\AppData\Roaming\Python\Python39\site-packages\pydotplus\graphviz.py", line 1640, in to_string
obj_list = sorted([
TypeError: '<' not supported between instances of 'dict' and 'dict'
When I print the objects in the obj_list, I can see that there are several objects with the same sequence number, which leads the sorted() function to compare the objects that are dictionaries, which obviously it cannot. I do not manually change any sequence numbers, so that happens automatically. How do I avoid multiple elements having the same sequence number? I am automatically generating > 19,000 graphs, so manually is not an option :)
Thanks for an otherwise super great package btw!
EDIT: I have "fixed" it locally by just not sorting the obj_list, but I do not really know the consequences of this.
The text was updated successfully, but these errors were encountered:
When I use write_svg(), I get the following error:
When I print the objects in the obj_list, I can see that there are several objects with the same sequence number, which leads the sorted() function to compare the objects that are dictionaries, which obviously it cannot. I do not manually change any sequence numbers, so that happens automatically. How do I avoid multiple elements having the same sequence number? I am automatically generating > 19,000 graphs, so manually is not an option :)
Thanks for an otherwise super great package btw!
EDIT: I have "fixed" it locally by just not sorting the obj_list, but I do not really know the consequences of this.
The text was updated successfully, but these errors were encountered: