# Weave Error: Could not spawn pandoc\_header.txt

**URL:** <https://discourse.julialang.org/t/weave-error-could-not-spawn-pandoc-header-txt/25300>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [June 14, 2019, 10:34am UTC](https://discourse.julialang.org/t/weave-error-could-not-spawn-pandoc-header-txt/25300 "2019-06-14T10:34:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kapple](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kapple/32/218915_2.png) [@kapple](https://discourse.julialang.org/u/kapple)\
**Post date:** [June 14, 2019, 10:34am UTC](https://discourse.julialang.org/t/weave-error-could-not-spawn-pandoc-header-txt/25300/1 "2019-06-14T10:34:07Z")

</div>

Hi everyone,

I’ve copied and pasted the example from

```
https://syl1.gitbook.io/julia-language-a-concise-tutorial/useful-packages/14-weave

```

and compiling it with

```
using Weave; weave("testWeave.jmd", out_path = :pwd, doctype = "pandoc2pdf")

```

gives the following error:

```
ERROR: IOError: could not spawn `pandoc -f markdown+raw_tex -s --pdf-engine=xelatex --highlight-style=tango --filter pandoc-citeproc '--include-in-header=C:\Users\aaron\.julia\packages\Weave\L0NNS\src\../templates/pandoc_header.txt' -V fontsize=12pt -o testWeave.pdf`: no such file or directory (ENOENT)

```

Please advise.

---

<div class="post-metadata">

**Author:** ![tlienart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tlienart/32/7640_2.png) [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Post date:** [June 14, 2019, 11:12am UTC](https://discourse.julialang.org/t/weave-error-could-not-spawn-pandoc-header-txt/25300/2 "2019-06-14T11:12:37Z")

</div>

Do you have pandoc installed ?

---

<div class="post-metadata">

**Author:** ![kapple](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kapple/32/218915_2.png) [@kapple](https://discourse.julialang.org/u/kapple)\
**Post date:** [June 14, 2019, 12:10pm UTC](https://discourse.julialang.org/t/weave-error-could-not-spawn-pandoc-header-txt/25300/3 "2019-06-14T12:10:52Z")

</div>

Yes, I do. I just use md2pdf instead for now.

But pandoc2pdf doesn’t work.
