-
-
Notifications
You must be signed in to change notification settings - Fork 711
Closed
Description
Context
- I'm using the Docker installation method and running the notebook inside the container.
- MacOS Catalina 10.15.1
I am on the 01_dash.delayed notebook and running into the following error when running the z.visualize() command.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/dask/utils.py in import_required(mod_name, error_msg)
97 try:
---> 98 return import_module(mod_name)
99 except ImportError:
/opt/conda/lib/python3.7/importlib/__init__.py in import_module(name, package)
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
128
/opt/conda/lib/python3.7/importlib/_bootstrap.py in _gcd_import(name, package, level)
/opt/conda/lib/python3.7/importlib/_bootstrap.py in _find_and_load(name, import_)
/opt/conda/lib/python3.7/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_)
ModuleNotFoundError: No module named 'graphviz'
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
<ipython-input-23-be67cab1446e> in <module>
1 # Look at the task graph for `z`
----> 2 z.visualize()
/opt/conda/lib/python3.7/site-packages/dask/base.py in visualize(self, filename, format, optimize_graph, **kwargs)
104 format=format,
105 optimize_graph=optimize_graph,
--> 106 **kwargs
107 )
108
/opt/conda/lib/python3.7/site-packages/dask/base.py in visualize(*args, **kwargs)
494 https://docs.dask.org/en/latest/optimize.html
495 """
--> 496 from dask.dot import dot_graph
497
498 filename = kwargs.pop("filename", "mydask")
/opt/conda/lib/python3.7/site-packages/dask/dot.py in <module>
12 graphviz = import_required(
13 "graphviz",
---> 14 "Drawing dask graphs requires the "
15 "`graphviz` python library and the "
16 "`graphviz` system library to be "
/opt/conda/lib/python3.7/site-packages/dask/utils.py in import_required(mod_name, error_msg)
98 return import_module(mod_name)
99 except ImportError:
--> 100 raise RuntimeError(error_msg)
101
102
RuntimeError: Drawing dask graphs requires the `graphviz` python library and the `graphviz` system library to be installed.It seems as though this error is caused by graphviz not being installed correctly.
The solution that worked for me was to run inside the container the following commands...
conda install -c conda-forge graphviz
conda install -c conda-forge python-graphvizMetadata
Metadata
Assignees
Labels
No labels