COMPILE PDF
I am able to run spyder following all steps gave us. I have already clone the repository but I can not to compile the PDF course. This is the issue:
(base) luzandrea@DESKTOP-M4MIDVF:~/coursem1_pa_instabilities_turbulence$ make
python Pyfig/make_fig_pitchfork_bifurcation.py save_for_tex
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-luzandrea'
Traceback (most recent call last):
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/texmanager.py", line 275, in _run_checked_subprocess
report = subprocess.check_output(command,
File "/home/luzandrea/miniconda3/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/home/luzandrea/miniconda3/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['latex', '-interaction=nonstopmode', '--halt-on-error', '/home/luzandrea/.cache/matplotlib/tex.cache/a6a6fcda14963f32e553473f5688e881.tex']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "Pyfig/make_fig_pitchfork_bifurcation.py", line 22, in <module>
save(fig, '../tmp/fig_pitchfork_bifurcation.png')
File "/home/luzandrea/coursem1_pa_instabilities_turbulence/Pyfig/util.py", line 18, in save
fig.savefig(os.path.join(path_tmp, name))
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/figure.py", line 2311, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/backends/backend_qt5agg.py", line 81, in print_figure
super().print_figure(*args, **kwargs)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2210, in print_figure
result = print_method(
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 1639, in wrapper
return func(*args, **kwargs)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 509, in print_png
FigureCanvasAgg.draw(self)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 407, in draw
self.figure.draw(self.renderer)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/figure.py", line 1863, in draw
mimage._draw_list_compositing_images(
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images
a.draw(renderer)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py", line 411, in wrapper
return func(*inner_args, **inner_kwargs)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2747, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images
a.draw(renderer)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/axis.py", line 1165, in draw
ticklabelBoxes, ticklabelBoxes2 = self._get_tick_bboxes(ticks_to_draw,
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/axis.py", line 1091, in _get_tick_bboxes
return ([tick.label1.get_window_extent(renderer)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/axis.py", line 1091, in <listcomp>
return ([tick.label1.get_window_extent(renderer)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/text.py", line 900, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/text.py", line 285, in _get_layout
_, lp_h, lp_d = renderer.get_text_width_height_descent(
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 227, in get_text_width_height_descent
w, h, d = texmanager.get_text_width_height_descent(
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/texmanager.py", line 423, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/texmanager.py", line 309, in make_dvi
self._run_checked_subprocess(
File "/home/luzandrea/miniconda3/lib/python3.8/site-packages/matplotlib/texmanager.py", line 283, in _run_checked_subprocess
raise RuntimeError(
RuntimeError: latex was not able to process the following string:
b'lp'
Here is the full report generated by latex:
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(/home/luzandrea/.cache/matplotlib/tex.cache/a6a6fcda14963f32e553473f5688e881.t
ex
LaTeX2e <2017-04-15>
Babel <3.18> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/type1cm/type1cm.sty)
! LaTeX Error: File `type1ec.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
l.6 \usepackage
{type1ec}^^M
No pages of output.
Transcript written on a6a6fcda14963f32e553473f5688e881.log.
Makefile:30: recipe for target 'tmp/fig_pitchfork_bifurcation.png' failed
make: *** [tmp/fig_pitchfork_bifurcation.png] Error 1
Thanks!!
Edited by Pierre Augier