pycontw / postevent-report-generator

Generate post-event report of PyCon Taiwan
https://pycontw.github.io/pycontw-postevent-report-generator/
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

Remove or suppress the warning messages from Glyph missing font #2

Closed tai271828 closed 5 years ago

tai271828 commented 5 years ago

In 2018 I dump the report in a system with a zh_TW font to support to generate a report in zh_TW. However, the font is not that common and we don't plan to generate the version of zh_TW. The warning message of missing font looks scary for people without the font. It will be great if we could have a more explicit instruction of the warning or suppress/remove it.

Warning message information


/home/tai271828/.local/share/virtualenvs/pycontw-postevent-report-generator-sthy_Jhg/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py:180: RuntimeWarning: Glyph 20197 missing from current font.
  font.set_text(s, 0, flags=flags)
/home/tai271828/.local/share/virtualenvs/pycontw-postevent-report-generator-sthy_Jhg/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py:180: RuntimeWarning: Glyph 20839 missing from current font.
  font.set_text(s, 0, flags=flags)
/home/tai271828/.local/share/virtualenvs/pycontw-postevent-report-generator-sthy_Jhg/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py:180: RuntimeWarning: Glyph 21040 missing from current font.
  font.set_text(s, 0, flags=flags)
/home/tai271828/work-my-projects/pycontw2019-post-event-analysis/pycontw-postevent-report-generator/report_generator/io/yaml.py:11: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  yaml_load = yaml.load(stream)
Analysis process finished completely.
Lee-W commented 5 years ago

It seems the warning is removed in the latest version. Should we close this issue?

tai271828 commented 5 years ago

Thanks for the reminder. Yeah I fixed this issue.