Skip to content

Commit

Permalink
fix graphviz dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorb1 committed Nov 3, 2023
1 parent 8cef3b8 commit d7f668e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
17 changes: 8 additions & 9 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,20 +216,19 @@ Run the following command, where the RES will be saved as the file ``res.png``::
$ otoole viz res excel simplicity.xlsx res.png config.yaml

.. WARNING::
If you encounter a ``graphviz`` dependency error, please install it in your
virtual environment through::

pip install graphviz # if using pip
conda install graphviz # if using conda

Alternatively, you can install it on your system via the commands::
If you encounter a ``graphviz`` dependency error, install it on your system
from the graphviz_ website (if on Windows) or via the command::

sudo apt install graphviz # if on Ubuntu
brew install graphviz # if on Mac

Or from the graphviz_ website if on Windows.
To check that ``graphviz`` installed correctly, run ``dot -V`` to check the
version::

~$ dot -V
dot - graphviz version 2.43.0 (0)

2. View the RES
1. View the RES
~~~~~~~~~~~~~~~
Open the newly created file, ``res.png`` and the following image should be
displayed
Expand Down
1 change: 0 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
amply>=0.1.4
docutils<0.18
graphviz
flatten_dict
Jinja2<3.1
networkx
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ install_requires =
flatten_dict
openpyxl
pydantic>=2
graphviz
[options.packages.find]
where = src
exclude =
Expand Down

0 comments on commit d7f668e

Please sign in to comment.