xflr6 / graphviz

Simple Python interface for Graphviz
https://graphviz.readthedocs.io
MIT License
1.65k stars 213 forks source link

bug: from graphviz import * error #167

Closed atomsos closed 2 years ago

atomsos commented 2 years ago

For version 0.19.1, 0.19, if I run

from graphviz import *

then

Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'graphviz' has no attribute 'ExecutableNotFound, CalledProcessError'

but for 0.18, everything is OK. Is this a bug?

xflr6 commented 2 years ago

Thanks for the report.

It's a bug, broken in https://github.com/xflr6/graphviz/commit/b0898c5f47d4ddfe8a138f5af440bf1e94554a29#diff-60d8e275820dc7875c1c88834b746ee2c92d64f97d04b96ef2ac49d4375a1ba0R53.

Pending fix in 8cda190a9cb9890828bf032c18524aa8dc8ec2a2.

Not sure why this is not flagged by flake8 (IIRC this kind of error was normally flagged).

xflr6 commented 2 years ago

Fixed in 0.19.2 release, closing.