sisl / tufte_algorithms_book

A template for textbooks in the same style as Algorithms for Optimization
352 stars 66 forks source link

Error running Weave #31

Open heetbeet opened 3 years ago

heetbeet commented 3 years ago

When running your example, this is the output I get. I added PythonTex v 0.18 dev as required

This is PythonTeX 0.18dev

----  Messages for juliacon:default:default  ----
* PythonTeX error
    Running code for Julia console failed
WARNING: Method definition latex(IO, Markdown.LaTeX) in module Markdown at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Markdown\src\IPython\IPython.jl:28 overwritten in module WeaveMarkdown at C:\Users\simon\.julia\packages\Weave\BarbQ\src\WeaveMarkdown\markdown.jl:10.
  ** incremental compilation may be fatally broken for this module **

ERROR: KeyError: key "tex" not found
Stacktrace:
 [1] getindex at .\dict.jl:467 [inlined]
 [2] get_format at C:\Users\simon\.julia\packages\Weave\BarbQ\src\Weave.jl:48 [inlined]
 [3] run_doc(::Weave.WeaveDoc; doctype::String, out_path::Symbol, args::Dict{Any,Any}, mod::Nothing, fig_path::Nothing, fig_ext::Nothing, cache_path::String, cache::Symbol) at C:\Users\simon\.julia\packages\Weave\BarbQ\src\run.jl:20
 [4] weave(::String; doctype::String, informat::Nothing, out_path::Symbol, args::Dict{Any,Any}, mod::Nothing, fig_path::Nothing, fig_ext::Nothing, cache_path::String, cache::Symbol, template::Nothing, css::Nothing, highlight_theme::Nothing, pandoc_options::Array{String,1}, latex_cmd::Array{String,1}, keep_unicode::Bool) at C:\Users\simon\.julia\packages\Weave\BarbQ\src\Weave.jl:177
 [5] #weave#115 at C:\Users\simon\.julia\packages\Weave\BarbQ\src\Weave.jl:233 [inlined]
 [6] weave(::String, ::String) at C:\Users\simon\.julia\packages\Weave\BarbQ\src\Weave.jl:233
 [7] top-level scope at none:1

--------------------------------------------------
PythonTeX:  book - 1 error(s), 0 warning(s)

make: [makefile:14: compile] Error 1 (ignored)
AshtonSBradley commented 3 years ago

same problem for me on MacOS, although not sure how to update to 0.18 pythontex

mykelk commented 3 years ago

You can try to revert Weave.jl back to 0.10.2 (see this thread: JunoLab/Weave.jl#391)