Using Octopress- One More Thing

July 6, 2014 in Octopress , Jekyll , Ruby , Python , Pygments.rb , blog , Jackie Chan Adventures , Windows

“Aiiiiyaaaa! Jacky! You did not install Ruuuubyyy. You need that to write your blog.”

“I already install Ruby, uncle, but it still does not work. rake generate creates empty HTML file! Look, it’s broken!”

1
2
3
>rake generate
Generating... C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/posix-spawn-0.3.8/lib/posix/spawn.rb:162: warning: cannot close fd before spawn
'which' is not recognized as an internal or external command, operable program or batch file.

Swat!

“Ow! What was dat for?”

“These are not eeeeerroooorrs, just warnings! Your site is empty because you forgot to install Pyyyythoooon.”

“What? Python? But you said Ruby!”

Swat! “Ow!”

“You need Ruby and Python to use coooode hiiiighliiiighting on your blooooog!”

“What!? I have to install Ruby and Python?! But I don’t use either of those!”

“One mooooore thing.” Swat!

“Ow! What was that for?!”

A still from 'Jackie Chan Adventures' showing uncle swatting Jackie on the head.

Swat!

“For using Windooooows!”


So, if you tried using Octopress’s neat backtick codeblock syntax to display code on your blog, but you don’t have Python intsalled, you will get a mostly blank website as the Pygments plugin silently fails and messes up the whole generate process. The warnings can safely be ignored (and will hopefully be eliminated soon). I put in a request for a message of some kind so that the process wouldn’t fail so silently.

Good times. Those are all on Netflix, by the way.