Sur Kali OS j’ai eu cette erreur :
Bad key text.parse_math in file /usr/share/matplotlib/mpl-data/matplotlibrc, line 303 ('text.parse_math: False # Use mathtext if there is an even number of unescaped') You probably need to get an updated matplotlibrc file from https://github.com/matplotlib/matplotlib/blob/v3.5.2/matplotlibrc.template or from the matplotlib source distribution Traceback (most recent call last): File "....Test.py", line 31, in <module> import gradio as gr File "/usr/local/lib/python3.11/dist-packages/gradio/__init__.py", line 3, in <module> import gradio._simple_templates File "/usr/local/lib/python3.11/dist-packages/gradio/_simple_templates/__init__.py", line 1, in <module> from .simpledropdown import SimpleDropdown File "/usr/local/lib/python3.11/dist-packages/gradio/_simple_templates/simpledropdown.py", line 6, in <module> from gradio.components.base import FormComponent File "/usr/local/lib/python3.11/dist-packages/gradio/components/__init__.py", line 1, in <module> from gradio.components.annotated_image import AnnotatedImage File "/usr/local/lib/python3.11/dist-packages/gradio/components/annotated_image.py", line 11, in <module> from gradio import processing_utils, utils File "/usr/local/lib/python3.11/dist-packages/gradio/processing_utils.py", line 23, in <module> from gradio.utils import abspath File "/usr/local/lib/python3.11/dist-packages/gradio/utils.py", line 38, in <module> import matplotlib File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 880, in <module> rcParamsDefault = _rc_params_in_file( ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 814, in _rc_params_in_file config[key] = val # try to convert to proper type or raise ~~~~~~^^^^^ File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 650, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key grid.color: '"' does not look like a color arg
J’ai donc edité le fichier /usr/share/matplotlib/mpl-data/matplotlibrc pour mettre en commentaire la ligne ( sachant que False ou True on a la même erreur) :
##text.parse_math: True
Mais je suis pas sûr que cela fixe le problème … cela plante un peu plus loin.