The map and console do not appear [solved by installing matplotlib]

I tried to use the command sim_vehicle.py -v ArduCopter --map --console , but when i run the map and console not appear. please help me Thanks in advance

Here is the error :

configure’ finished successfully (2.585s)
{‘model’: ‘+’, ‘waf_target’: ‘bin/arducopter’, ‘default_params_filename’: ‘default_params/copter.parm’, ‘sitl-port’: True}
SIM_VEHICLE: Building
SIM_VEHICLE: “/home/wanhakimi/intern/apm/ardupilot/modules/waf/waf-light” “build” “–target” “bin/arducopter”
Waf: Entering directory /home/wanhakimi/intern/apm/ardupilot/build/sitl' Embedding file locations.txt:Tools/autotest/locations.txt Embedding file models/Callisto.json:Tools/autotest/models/Callisto.json Embedding file models/plane-3d.parm:Tools/autotest/models/plane-3d.parm Embedding file models/plane.parm:Tools/autotest/models/plane.parm Embedding file models/xplane_heli.json:Tools/autotest/models/xplane_heli.json Embedding file models/xplane_plane.json:Tools/autotest/models/xplane_plane.json Waf: Leaving directory /home/wanhakimi/intern/apm/ardupilot/build/sitl’

BUILD SUMMARY
Build directory: /home/wanhakimi/intern/apm/ardupilot/build/sitl
Target Text (B) Data (B) BSS (B) Total Flash Used (B) Free Flash (B) External Flash Used (B)

bin/arducopter 3864920 173037 214184 4037957 Not Applicable Not Applicable

Build commands will be stored in build/sitl/compile_commands.json
‘build’ finished successfully (6.374s)
SIM_VEHICLE: Using defaults from (intern/apm/ardupilot/Tools/autotest/default_params/copter.parm)
SIM_VEHICLE: Run ArduCopter
SIM_VEHICLE: “/home/wanhakimi/intern/apm/ardupilot/Tools/autotest/run_in_terminal_window.sh” “ArduCopter” “/home/wanhakimi/intern/apm/ardupilot/build/sitl/bin/arducopter” “-S” “–model” “+” “–speedup” “1” “–slave” “0” “–defaults” “intern/apm/ardupilot/Tools/autotest/default_params/copter.parm” “–sim-address=127.0.0.1” “-I0”
SIM_VEHICLE: Run MavProxy
SIM_VEHICLE: “mavproxy.py” “–out” “127.0.0.1:14550” “–master” “tcp:127.0.0.1:5760” “–sitl” “127.0.0.1:5501” “–map” “–console”
RiTW: Starting ArduCopter : /home/wanhakimi/intern/apm/ardupilot/build/sitl/bin/arducopter -S --model + --speedup 1 --slave 0 --defaults intern/apm/ardupilot/Tools/autotest/default_params/copter.parm --sim-address=127.0.0.1 -I0

Option “-e” is deprecated and might be removed in a later version of gnome-terminal.

Use “-- ” to terminate the options and put the command line to execute after it.

Connect tcp:127.0.0.1:5760 source_system=255
Loaded module console
Process Process-1:
Traceback (most recent call last):
File “/usr/lib/python3.10/multiprocessing/process.py”, line 314, in _bootstrap
self.run()
File “/usr/lib/python3.10/multiprocessing/process.py”, line 108, in run
self._target(*self._args, **self._kwargs)
File “/home/wanhakimi/.local/lib/python3.10/site-packages/MAVProxy-1.8.67-py3.10.egg/MAVProxy/modules/lib/wxconsole.py”, line 42, in child_task
from MAVProxy.modules.lib.wxconsole_ui import ConsoleFrame
File “/home/wanhakimi/.local/lib/python3.10/site-packages/MAVProxy-1.8.67-py3.10.egg/MAVProxy/modules/lib/wxconsole_ui.py”, line 9, in
from MAVProxy.modules.lib import icon
File “/home/wanhakimi/.local/lib/python3.10/site-packages/MAVProxy-1.8.67-py3.10.egg/MAVProxy/modules/lib/icon.py”, line 6, in
from matplotlib.figure import Figure
File “/home/wanhakimi/.local/lib/python3.10/site-packages/matplotlib/figure.py”, line 43, in
from matplotlib import _blocking_input, backend_bases, _docstring, projections
File “/home/wanhakimi/.local/lib/python3.10/site-packages/matplotlib/projections/init.py”, line 58, in
from mpl_toolkits.mplot3d import Axes3D
File “/usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/init.py”, line 1, in
from .axes3d import Axes3D
File “/usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/axes3d.py”, line 23, in
from matplotlib import _api, cbook, docstring, _preprocess_data
ImportError: cannot import name ‘docstring’ from ‘matplotlib’ (/home/wanhakimi/.local/lib/python3.10/site-packages/matplotlib/init.py)
Process Process-2:
Traceback (most recent call last):
File “/usr/lib/python3.10/multiprocessing/process.py”, line 314, in _bootstrap
self.run()
File “/usr/lib/python3.10/multiprocessing/process.py”, line 108, in run
self._target(*self._args, **self._kwargs)
File “/home/wanhakimi/.local/lib/python3.10/site-packages/MAVProxy-1.8.67-py3.10.egg/MAVProxy/modules/mavproxy_map/mp_slipmap.py”, line 83, in child_task
from MAVProxy.modules.mavproxy_map.mp_slipmap_ui import MPSlipMapFrame
File “/home/wanhakimi/.local/lib/python3.10/site-packages/MAVProxy-1.8.67-py3.10.egg/MAVProxy/modules/mavproxy_map/mp_slipmap_ui.py”, line 34, in
from MAVProxy.modules.lib import icon
File “/home/wanhakimi/.local/lib/python3.10/site-packages/MAVProxy-1.8.67-py3.10.egg/MAVProxy/modules/lib/icon.py”, line 6, in
from matplotlib.figure import Figure
File “/home/wanhakimi/.local/lib/python3.10/site-packages/matplotlib/figure.py”, line 43, in
from matplotlib import _blocking_input, backend_bases, _docstring, projections
File “/home/wanhakimi/.local/lib/python3.10/site-packages/matplotlib/projections/init.py”, line 58, in
from mpl_toolkits.mplot3d import Axes3D
File “/usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/init.py”, line 1, in
from .axes3d import Axes3D
File “/usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/axes3d.py”, line 23, in
from matplotlib import _api, cbook, docstring, _preprocess_data
ImportError: cannot import name ‘docstring’ from ‘matplotlib’ (/home/wanhakimi/.local/lib/python3.10/site-packages/matplotlib/init.py)
ERROR in command [‘load’, ‘map’]: map not ready
Log Directory:

Sorry , the error was fixed by reinstall the matplotlib .