TUFLOW Viewer Matplotlib Font Error: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Ellis Symons (talk | contribs) No edit summary |
No edit summary |
||
| Line 20: | Line 20: | ||
<li> If the problem persists, try deleting all the fontlist files in the folder. |
<li> If the problem persists, try deleting all the fontlist files in the folder. |
||
</ol> |
</ol> |
||
{{Tips Navigation |
|||
|uplink=[[TUFLOW_Viewer| Back to TUFLOW Viewer]] |
|||
}} |
|||
Latest revision as of 11:56, 8 January 2026
This page describes how to fix TUFLOW Viewer if you get the following error (or similar). Unfortunately this is a bug with the plotting library TUFLOW Viewer uses (matplotlib) and is due to an issue with its cached data.
ValueError: Failed to find font DejaVu Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=10.0, and fallback to the default font was disabled
To fix this issue, the matplotlib cache data will need to be deleted. The steps below describe how to do this:
- Open QGIS
- Open the Python interpreter
- In the python interpreter type the following commands:
import matplotlib print(matplotlib.get_cachedir())
- This will print the matplotlib cache directory
- In this directory, delete the fontlist-v330.json file
- Try opening TUFLOW Viewer (you should not need to restart QGIS, however if it still doesn't work then restarting QGIS will be worth trying)
- If the problem persists, try deleting all the fontlist files in the folder.
| Up |
|---|