ImportError: cannot import name ‘mtext’ from ‘matplotlib.axes’ #5
-
I was trying to follow the "getting-started" tutorial and encounter this error. from commonroad.common.file_reader import CommonRoadFileReader
from commonroad.visualization.mp_renderer import MPRenderer
file_path = "location4.xml"
scenario, planning_problem_set = CommonRoadFileReader(file_path).open()
# plot the scenario
rnd = MPRenderer(figsize=(25, 10))
scenario.draw(rnd)
rnd.render(show=True)
I think I have everything correctly installed and I didn't touch any file in my site packages antlr4-python3-runtime 4.9.3 How can I resolve this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please try to downgrade matplotlib to a version < 3.9 |
Beta Was this translation helpful? Give feedback.
Please try to downgrade matplotlib to a version < 3.9
There seem to be incompatibilities with the latest major matplotlib version.
We will fix this in the next CommonRoad-IO release.
See here for the corresponding issue.