Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyone Else Getting a "exec error: Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT" Error? #35

Open
SurlyKM opened this issue Apr 3, 2024 · 4 comments

Comments

@SurlyKM
Copy link

SurlyKM commented Apr 3, 2024

Getting exec error: Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT
pandoc installed and works fine.

image

@ChrisChinchilla
Copy link
Owner

@SurlyKM Testing this, were you trying to create a PDF? Do you get the same error with other file types?

@SurlyKM
Copy link
Author

SurlyKM commented Apr 15, 2024

@ChrisChinchilla sorry for the delay,
I was attempting to go from .md to .docx , but the error above happens for all file types.
However I can use pandoc direct from from powershell to create a docx without issue.
ex. PS C:\Program Files\Pandoc> .\pandoc.exe -o "C:\Temp\new 107.docx" "C:\Temp\new 107.txt"
This works fine.

I have not had success with PDF but i believe I just need to install pdflatex.

PS C:\Program Files\Pandoc> .\pandoc.exe -o "C:\Temp\new 107.pdf" "C:\Temp\new 107.txt"
pdflatex not found. Please select a different --pdf-engine or install pdflatex

@ChrisChinchilla
Copy link
Owner

@SurlyKM Hmm, then I couldn't recreate this, but I will try it again. Yes, I realised that I need to update the docs to mention this requirement, but I could convert to a Word file with no problems. I am not so experienced with Windows…

What version of Windows? How did you install Pandoc?

@SurlyKM
Copy link
Author

SurlyKM commented Apr 15, 2024

@ChrisChinchilla hmm ya it strange, I manually installed Pandoc from their website. On Windows 10 version 10.0.19045
I thought i could be permissions but tried VSCode as admin and same error,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants