Closed Bridouz closed 4 years ago
Hi @Bridouz,
could you add the whole test log. I guess the actual error is mentioned a bit above.
Hmmm, that triggered another issue, doesn't it
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <transitions.extensions.diagrams_graphviz.Graph object at 0x7fc51d989df0>
title = 'State Machine', roi_state = None
def generate(self, title=None, roi_state=None):
""" Generate a DOT graph with graphviz
Args:
roi_state (str): Optional, show only custom states and edges from roi_state
"""
if not pgv: # pragma: no cover
> raise Exception('AGraph diagram requires graphviz')
E Exception: AGraph diagram requires graphviz
transitions/extensions/diagrams_graphviz.py:77: Exception
=========================== short test summary info ============================
FAILED tests/test_async.py::AsyncGraphMachine::test___getattr___and_identify_callback
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
========================= 1 failed, 67 passed in 1.51s =========================
So, one problem is that your process does not install optional dependencies mentioned in requirements_diagrams.txt
or extras_require
in setup.py
. requirements_test.txt
mentions the graphviz
module but this module does not work when Graphviz hasn't been installed independently. I will adjust the tests to skip all tests involving (py)graphviz when this is not present. However, you might want to consider to install optional pygraphviz
or Graphviz for graphviz
to also test transitions diagram capabilities as done for travis or tox. I do not explicitely install Graphviz in the Travis job. I guess that's part of their image...
Thanks, issue solved.
Packaging latest version for my distro (Alpine):