jclement / SublimePandoc

Sublime Text 2 Plugin for the Pandoc Markdown Renderer
34 stars 12 forks source link

Unable to execute Pandoc #3

Open harmdewit opened 12 years ago

harmdewit commented 12 years ago

I'm unable to use Pandoc on my OSX Lion using your Sublime Pandoc package. I have installed Pandoc before and i'm using it for some time using the terminal. When using the package command render markdown to html i'm getting the following message:

Details: [Errno 2] No such file or directory
Wrote: /var/folders/xl/t3hxgd8x35n0hvndm_jn5d300000gn/T/tmpgc6GyR.html
error: Unable to execute Pandoc.

Probably i don't have the right environment variables set for Sublime Text. Can someone help me with this?

tomPorter commented 12 years ago

I get the same error message, and I have installed/uninstalled pandoc a couple of different ways: built using cabal install and also downloading the OSX dmg file.

I can run pandoc from my terminal just fine.

mauceri commented 12 years ago

Hi have the same problem too

tomPorter commented 12 years ago

This may not be the optimal way to do it, but I changed PandocRender.py in the Pandoc Package directory.

Around line 61 where the cmd variable is built, I changed the cmd = ['pandoc'] line to cmd = ['/usr/local/bin/pandoc']

(or whereever you have the pandoc executable installed.

I had tried modifying the global path dictionary element in other sublime defaults, but that did not work.

mauceri commented 12 years ago

I try this solution but something strange happens: the menu commands do not work at all (not even an error message) in the command palette the pandoc:render to temp HTML and view choice is duplicated (not the pdf one) and one of the two commands works.

veriKami commented 11 years ago

I have the same issue... @tomPorter's "line 61" tip helped, but it's quite a dirty hack...

rpietro commented 11 years ago

yup, exact same error here

torralbofco commented 11 years ago

I've got the same problem. Any solution?

yimingli commented 10 years ago

Still getting the "[Errno 2] No such file or directory" error...