-
Notifications
You must be signed in to change notification settings - Fork 158
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
"dia" format not supported #273
Comments
Hmm, yes, I am not seeing
According to the Graphviz changelog, support for
Problem is that the output formats of Graphviz obviously vary, and we do not know what formats are supported by the Graphviz version the user is using. Perhaps Graphviz compilation (build-time) options can also influence which formats are available, so it is not just the version number that determines the formats available. On the other hand, we can never have a complete list, because we cannot know yet what formats will be supported in future versions of Graphviz that current versions of pydot may have to work with later. I guess we could try to find some compromise, where we keep including the formats for Graphviz versions of the last 10 years and any new formats that are in development for future versions of Graphviz. Then we could drop Another obvious idea would be to query Graphviz dynamically during pydot initialization, but I do not know if that is really such a great idea. It will be quite a lot of work to implement, maybe slow and error-prone, and will also make user code less portable because they cannot be sure which convenience methods (e.g. About preventing users from using formats other than the ones listed in By the way, if you want to work on this, know that #242 touches on some of the same parts of the code. They will not be in each other's way much, but just know that some rebasing may be involved. |
One of the formats listed in
self.formats
isdia
(code), however, when I tried to use this format, such as indot.write("my/path", format="dia")
, I got the following error:Was this an option available with an older version of dot? I also noticed in the code that there is nothing preventing users from using formats other than the ones listed in
self.formats
, which could be a desirable feature.I'd be happy to make any changes deemed necessary and submit a pull request.
The text was updated successfully, but these errors were encountered: