# Jupyter Won't Spawn ENOENT, unable to export pdf

**URL:** <https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648>\
**Category:** General Usage\
**Created:** [November 23, 2020, 7:45pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648 "2020-11-23T19:45:49Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [November 23, 2020, 7:45pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/1 "2020-11-23T19:45:49Z")

</div>

I had Jupyter working for the first time yesterday, and was able use the latest version of Julia Pro, to run most files. Today though, It says something about unable to spawn ENOENT, and none of the features work.

```julia
> ~\AppData\Local\JuliaPro-1.5.3-1\Julia-1.5.3\bin\julia.exe -i --startup-file=yes --color=yes ~\.julia\packages\IJulia\a1SNk\src\kernel.jl ~\AppData\Local\Temp\tmp-1816pslnUp1GcWPy.json
cwd: c:\Users\Brett\Documents\Tutorials and Tests
Error 2020-11-23 13:56:08: Export failed [Error: spawn cmd ENOENT
	at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
	at onErrorNT (internal/child_process.js:456:16)
	at processTicksAndRejections (internal/process/task_queues.js:81:21)] {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn cmd',
  path: 'cmd',
  spawnargs: [
    '/d',
    '/s',
    '/c',
    `"C:/Users/Brett/.julia/conda/3/Scripts/activate && conda activate C:\\Users\\Brett\\.julia\\conda\\3 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:\\Users\\Brett\\.vscode\\extensions\\ms-python.python-2020.11.371526539\\pythonFiles\\pyvsc-run-isolated.py c:/Users/Brett/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/printEnvVariables.py"`
  ],
  cmd: "C:/Users/Brett/.julia/conda/3/Scripts/activate && conda activate C:\\Users\\Brett\\.julia\\conda\\3 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:\\Users\\Brett\\.vscode\\extensions\\ms-python.python-2020.11.371526539\\pythonFiles\\pyvsc-run-isolated.py c:/Users/Brett/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/printEnvVariables.py"
}

```

---

<div class="post-metadata">

**Author:** ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)\
**Post date:** [November 23, 2020, 8:02pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/2 "2020-11-23T20:02:30Z")

</div>

Brett, you need to supply more information for people to be able to help you. At the absolute minimum, showing us the actual error message will go a long way.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

I hope this doesn’t sound rude, but it feels like a pattern that you consistently do not provide enough information to make it easy for people to help you, despite people consistently instructing you on what sort of information you should be providing when you run into these sorts of issues.

* * *

Edit: I see you have provided the error message now, thank you.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [November 23, 2020, 8:05pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/3 "2020-11-23T20:05:34Z")

</div>

Sorry about that. At first I didn’t realize the error was available. I did find the error and added it to my message.

---

<div class="post-metadata">

**Author:** ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)\
**Post date:** [November 23, 2020, 8:08pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/4 "2020-11-23T20:08:03Z")

</div>

Can you open a julia repl and type `using Pkg; pkg"st IJulia"` for me?

The output should look something like

```julia
julia> using Pkg; pkg"st IJulia"
Status `~/.julia/environments/v1.5/Project.toml`
  [7073ff75] IJulia v1.21.3 ⚲

```

Also, could you show `versioninfo()`? For me, this looks like

```julia
julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1* (2020-11-09 13:37 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD Ryzen 5 2600 Six-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, znver1)
Environment:
  JULIA_NUM_THREADS = 6

```

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [November 23, 2020, 8:12pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/5 "2020-11-23T20:12:02Z")

</div>

> [@Mason](#):
>
> `using Pkg; pkg"st IJulia"`

ERROR: UndefVarError: @pkg\_str not defined

---

<div class="post-metadata">

**Author:** ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)\
**Post date:** [November 23, 2020, 8:17pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/6 "2020-11-23T20:17:13Z")

</div>

Did you do `using Pkg` first?

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [November 23, 2020, 8:18pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/7 "2020-11-23T20:18:05Z")

</div>

you mean

```julia
using IJulia

```

?

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [November 23, 2020, 8:21pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/8 "2020-11-23T20:21:35Z")

</div>

You should be familiar with when you need to do `using Pkg` before performing package commands. You are aware that in order for `Pkg.add("IJulia")` to work you first have to run `using Pkg` or `import Pkg`?

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [November 23, 2020, 8:25pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/9 "2020-11-23T20:25:01Z")

</div>

yes, I imorted IJulia, and I loaded IJulia, using the ‘using’ function.

I did get several warning though.

```julia
┌ Warning: malformed Pkg server value
│ server = "https://C:\\Users\\Brett\\AppData\\Local\\Programs\\Julia 1.5.3\\bin\\julia.exe"
└ @ Pkg.PlatformEngines C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\PlatformEngines.jl:605
┌ Warning: malformed Pkg server value
│ server = "https://C:\\Users\\Brett\\AppData\\Local\\Programs\\Julia 1.5.3\\bin\\julia.exe"
└ @ Pkg.PlatformEngines C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\PlatformEngines.jl:605
┌ Warning: could not download https://C:\Users\Brett\AppData\Local\Programs\Julia 1.5.3\bin\julia.exe/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Types.jl:951
   Updating registry at `C:\Users\Brett\.julia\registries\JuliaComputingRegistry`
  Resolving package versions...
┌ Warning: malformed Pkg server value
│ server = "https://C:\\Users\\Brett\\AppData\\Local\\Programs\\Julia 1.5.3\\bin\\julia.exe"
└ @ Pkg.PlatformEngines C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\PlatformEngines.jl:605
┌ Warning: malformed Pkg server value
│ server = "https://C:\\Users\\Brett\\AppData\\Local\\Programs\\Julia 1.5.3\\bin\\julia.exe"
└ @ Pkg.PlatformEngines C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\PlatformEngines.jl:605

```

they’re all related to the server, which might explain why problems involove new notebooks or exporting

---

<div class="post-metadata">

**Author:** ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)\
**Post date:** [November 23, 2020, 8:25pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/10 "2020-11-23T20:25:33Z")

</div>

No, I meant `using Pkg` as I said.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [November 23, 2020, 8:31pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/11 "2020-11-23T20:31:16Z")

</div>

No I hadn’t the error about spawning went away. Now I have one about nbconvert

```julia
Error 2020-11-23 14:29:30: Export failed [Error: Importing notebooks requires Jupyter nbconvert to be installed.
	at u.getExportInterpreter (c:\Users\Brett\.vscode\extensions\ms-toolsai.jupyter-2020.11.372831992\out\client\extension.js:32:528426)
	at processTicksAndRejections (internal/process/task_queues.js:94:5)
	at async _.export (c:\Users\Brett\.vscode\extensions\ms-toolsai.jupyter-2020.11.372831992\out\client\extension.js:49:256389)
	at async m.export (c:\Users\Brett\.vscode\extensions\ms-toolsai.jupyter-2020.11.372831992\out\client\extension.js:32:256898)]

```

I tried to install nbconvert with conda, and it said it was already installed.

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [November 23, 2020, 8:46pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/12 "2020-11-23T20:46:50Z")

</div>

Run `import Pkg; Pkg.build("IJulia")` again.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [November 23, 2020, 9:10pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/13 "2020-11-23T21:10:38Z")

</div>

```julia
Error 2020-11-23 15:03:30: Export failed [Error: spawn cmd ENOENT
	at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
	at onErrorNT (internal/child_process.js:456:16)
	at processTicksAndRejections (internal/process/task_queues.js:81:21)] {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn cmd',
  path: 'cmd',
  spawnargs: [
    '/d',
    '/s',
    '/c',
    `"C:/Users/Brett/.julia/conda/3/Scripts/activate && conda activate C:\\Users\\Brett\\.julia\\conda\\3 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:\\Users\\Brett\\.vscode\\extensions\\ms-python.python-2020.11.371526539\\pythonFiles\\pyvsc-run-isolated.py c:/Users/Brett/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/printEnvVariables.py"`
  ],
  cmd: "C:/Users/Brett/.julia/conda/3/Scripts/activate && conda activate C:\\Users\\Brett\\.julia\\conda\\3 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:\\Users\\Brett\\.vscode\\extensions\\ms-python.python-2020.11.371526539\\pythonFiles\\pyvsc-run-isolated.py c:/Users/Brett/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/printEnvVariables.py"
}

```

I’m not sure what this ENOENT that it’s trying to connect to is.

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [November 23, 2020, 9:20pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/14 "2020-11-23T21:20:19Z")

</div>

You never showed us the command you are trying to run. Please post as much context as possible.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [November 23, 2020, 9:25pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/15 "2020-11-23T21:25:26Z")

</div>

I was using mouse commands, I’ll try some keword commands and get back to you. So far, I’m able to get to the save window, but when I press the export button, I get a notice that the export has failed.

 ![Screenshot (117)](https://global.discourse-cdn.com/julialang/original/3X/5/6/56b78d1da11a3bf5fb91d1df6c87c645c3769072.png)

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [November 23, 2020, 9:27pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/16 "2020-11-23T21:27:02Z")

</div>

It seems like the jupyter mode (which was just recently released) is not workig as promised using VS Code.

Unfortunately this _probably_ isn’t a julia problem, but rather a VS Code problem.

However I notice you are using Julia Pro. Maybe try downloading the normal binaries of Julia instead.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [November 23, 2020, 9:30pm UTC](https://discourse.julialang.org/t/jupyter-wont-spawn-enoent-unable-to-export-pdf/50648/17 "2020-11-23T21:30:06Z")

</div>

Ok, I can try that. I thought it started with Julia Pro, but now when I look at the options, the old option is Julia 1.4.0 . I can try that. I have 1.5.3 so I should be able to set up an environment path.
