You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
matplotlib seems to be required by Kedro Viz, but is not listed as a dependency.
Context
I created a new environment and spaceflights Kedro project to do a test with Kedro Viz, only to discover that I also needed to install matplotlib. I don't recall this happening before.
Traceback (most recent call last):
File "/Users/juan_cano/.micromamba/envs/_testkedro310/bin/kedro", line 8, in <module>
sys.exit(main())
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/kedro/framework/cli/cli.py", line 211, in main
cli_collection()
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/kedro/framework/cli/cli.py", line 139, in main
super().main(
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/kedro_viz/launchers/cli.py", line 86, in viz
from kedro_viz.server import is_localhost, run_server
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/kedro_viz/server.py", line 18, in <module>
from kedro_viz.integrations.kedro import data_loader as kedro_data_loader
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/kedro_viz/integrations/kedro/data_loader.py", line 132, in <module>
if hasattr(matplotlib, "MatplotlibWriter"):
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/lazy_loader/__init__.py", line 77, in __getattr__
submod = importlib.import_module(submod_path)
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/Users/juan_cano/.micromamba/envs/_testkedro310/lib/python3.10/site-packages/kedro_datasets/matplotlib/matplotlib_writer.py", line 11, in <module>
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
Your Environment
Include as many relevant details as possible about the environment you experienced the bug in:
Operating system and version: macOS Ventura
Kedro version used (if relevant): 0.18.12
Python version used (if relevant): 3.10.12
Checklist
Include labels so that we can categorise your issue
The text was updated successfully, but these errors were encountered:
Description
matplotlib seems to be required by Kedro Viz, but is not listed as a dependency.
Context
I created a new environment and spaceflights Kedro project to do a test with Kedro Viz, only to discover that I also needed to install matplotlib. I don't recall this happening before.
Steps to Reproduce
Expected Result
Kedro Viz launches normally.
Actual Result
Your Environment
Include as many relevant details as possible about the environment you experienced the bug in:
Checklist
The text was updated successfully, but these errors were encountered: