On Thursday, March 14, 2019 at 1:46:38 PM UTC-7, kcrisman wrote: > > I just ran the following command, and amazingly got only one timeout and > one error. The rest is fine. > > ./sage -tp 3 -T 600 --optional=sage,python2,latex src/sage > > ********************************************************************** > > File "src/sage/repl/rich_output/pretty_print.py", line 217, in > sage.repl.rich_output.pretty_print.pretty_print > > Failed example: > > pretty_print(ZZ, 123, plt) # optional - latex > > Expected: > > <html><script > type="math/tex">\newcommand{\Bold}[1]{\mathbf{#1}}\Bold{Z} 123 %% Creator: > Matplotlib, PGF backend...</script></html> > > Got: > > doctest:warning > > <snip> > > File > "/Users/karl.crisman/Downloads/sage/local/lib/python2.7/site-packages/matplotlib/backends/backend_pgf.py", > > line 50, in <module> > > warnings.warn('error getting fonts from fc-list', UserWarning) > > : > > UserWarning: error getting fonts from fc-list > > <html><script > type="math/tex">\newcommand{\Bold}[1]{\mathbf{#1}}\Bold{Z} 123 %% Creator: > Matplotlib, PGF backend > > The rest is fine and follows the expected output. Should this just be > expected with a middle-aged Mac? It's the only problem I get - for > instance, the file src/sage/misc/latex.py has no problems, so it's not > LaTeX per se. > - kcrisman >
I see a different but I guess related error, arising like this: sage: plt = plot(sin) sage: latex(plt) kpathsea:make_tex: Invalid filename `Bitstream Vera Serif', contains ' ' --------------------------------------------------------------------------- LatexError Traceback (most recent call last) <ipython-input-2-1558311d430c> in <module>() ----> 1 latex(plt) /Users/jpalmier/Desktop/Sage/git/sage/local/lib/python2.7/site-packages/sage/misc/latex.pyc in __call__(self, x, combine_all) 923 """ 924 if has_latex_attr(x): --> 925 return LatexExpr(x._latex_()) 926 try: 927 f = latex_table[type(x)] /Users/jpalmier/Desktop/Sage/git/sage/local/lib/python2.7/site-packages/sage/plot/graphics.pyc in _latex_(self, **kwds) 3240 """ 3241 tmpfilename = tmp_filename(ext='.pgf') -> 3242 self.save(filename=tmpfilename, **kwds) 3243 with open(tmpfilename, "r") as tmpfile: 3244 latex_list = tmpfile.readlines() /Users/jpalmier/Desktop/Sage/git/sage/local/lib/python2.7/site-packages/sage/misc/decorators.pyc in wrapper(*args, **kwds) 409 kwds[self.name + "options"] = suboptions 410 --> 411 return func(*args, **kwds) 412 413 # Add the options specified by @options to the signature of the wrapped /Users/jpalmier/Desktop/Sage/git/sage/local/lib/python2.7/site-packages/sage/plot/graphics.pyc in save(self, filename, **kwds) 3207 3208 # tight_layout adjusts the *subplot* parameters so ticks aren't cut off, etc. -> 3209 figure.tight_layout() 3210 3211 opts = dict(dpi=dpi, transparent=transparent) /Users/jpalmier/Desktop/Sage/git/sage/local/lib/python2.7/site-packages/matplotlib/figure.pyc in tight_layout(self, renderer, pad, h_pad, w_pad, rect) 2301 2302 if renderer is None: -> 2303 renderer = get_renderer(self) 2304 2305 kwargs = get_tight_layout_figure( /Users/jpalmier/Desktop/Sage/git/sage/local/lib/python2.7/site-packages/matplotlib/tight_layout.pyc in get_renderer(fig) 223 224 if canvas and hasattr(canvas, "get_renderer"): --> 225 renderer = canvas.get_renderer() 226 else: 227 # not sure if this can happen /Users/jpalmier/Desktop/Sage/git/sage/local/lib/python2.7/site-packages/matplotlib/backends/backend_pgf.pyc in get_renderer(self) 970 971 def get_renderer(self): --> 972 return RendererPgf(self.figure, None, dummy=True) 973 974 /Users/jpalmier/Desktop/Sage/git/sage/local/lib/python2.7/site-packages/matplotlib/backends/backend_pgf.pyc in __init__(self, figure, fh, dummy) 417 418 # get LatexManager instance --> 419 self.latexManager = LatexManagerFactory.get_latex_manager() 420 421 if dummy: /Users/jpalmier/Desktop/Sage/git/sage/local/lib/python2.7/site-packages/matplotlib/backends/backend_pgf.pyc in get_latex_manager() 228 if rcParams["pgf.debug"]: 229 print("creating LatexManager") --> 230 new_inst = LatexManager() 231 LatexManagerFactory.previous_instance = new_inst 232 return new_inst /Users/jpalmier/Desktop/Sage/git/sage/local/lib/python2.7/site-packages/matplotlib/backends/backend_pgf.pyc in __init__(self) 313 if latex.returncode != 0: 314 raise LatexError("LaTeX returned an error, probably missing font " --> 315 "or error in preamble:\n%s" % stdout) 316 317 # open LaTeX process for real work LatexError: LaTeX returned an error, probably missing font or error in preamble: This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2018) (preloaded format=xelatex) restricted \write18 enabled. **entering extended mode LaTeX2e <2018-12-01> *(/usr/local/texlive/2018/texmf-dist/tex/latex/base/minimal.cls Document Class: minimal 2001/05/25 Standard LaTeX minimal class ) (Please type a command or say `\end') * *(/usr/local/texlive/2018/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/local/texlive/2018/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/local/texlive/2018/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2018/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (/usr/local/texlive/2018/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))) (/usr/local/texlive/2018/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (/usr/local/texlive/2018/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2018/texmf-dist/tex/latex/base/tuenc.def)) (/usr/local/texlive/2018/texmf-dist/tex/latex/fontspec/fontspec.cfg))) * ! Package fontspec Error: The font "Bitstream Vera Serif" cannot be found. For immediate help type H <return>. ... <*> \setsansfont {Bitstream Vera Sans} No pages of output. Transcript written on texput.log. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.