In my case, this error came up when I attempted to convert a Jupyter notebook with Statsmodels regression summaries into a PDF document. As a workaround, I took screenshots of the regression results, then displayed those screenshots within my notebook instead of the original summary text.