Jupyter Won't Spawn ENOENT, unable to export pdf

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.

> ~\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"
}

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.

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.

2 Likes

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

1 Like

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

The output should look something like

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> 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

ERROR: UndefVarError: @pkg_str not defined

Did you do using Pkg first?

you mean

using IJulia

?

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?

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

I did get several warning though.

┌ 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

No, I meant using Pkg as I said.

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

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.

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

1 Like
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.

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

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.

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.

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.