You are not logged in.

#1 2013-06-04 09:55:01

synthetic
Member
Registered: 2012-06-20
Posts: 16

[SOLVED] Jekyll problem

Hi,
I just installed jekyll with

gem install jekyll

and generated a site with

jekyll new blog

Trying to serve the site locally with

jekyll serve

makes Jekyll quit with

Configuration file: /home/synthetic/blog/_config.yml
            Source: /home/synthetic/blog
       Destination: /home/synthetic/blog/_site
      Generating... [31m  Liquid Exception: Failed to get header. in 2013-06-03-welcome-to-jekyll.markdown[0m
/home/synthetic/.gem/ruby/2.0.0/gems/pygments.rb-0.5.0/lib/pygments/popen.rb:357:in `rescue in get_header'
/home/synthetic/.gem/ruby/2.0.0/gems/pygments.rb-0.5.0/lib/pygments/popen.rb:338:in `get_header'
/home/synthetic/.gem/ruby/2.0.0/gems/pygments.rb-0.5.0/lib/pygments/popen.rb:235:in `block in mentos'
/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
/home/synthetic/.gem/ruby/2.0.0/gems/pygments.rb-0.5.0/lib/pygments/popen.rb:209:in `mentos'
/home/synthetic/.gem/ruby/2.0.0/gems/pygments.rb-0.5.0/lib/pygments/popen.rb:192:in `highlight'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/tags/highlight.rb:57:in `render_pygments'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/tags/highlight.rb:45:in `render'
/home/synthetic/.gem/ruby/2.0.0/gems/liquid-2.5.0/lib/liquid/block.rb:106:in `block in render_all'
/home/synthetic/.gem/ruby/2.0.0/gems/liquid-2.5.0/lib/liquid/block.rb:93:in `each'
/home/synthetic/.gem/ruby/2.0.0/gems/liquid-2.5.0/lib/liquid/block.rb:93:in `render_all'
/home/synthetic/.gem/ruby/2.0.0/gems/liquid-2.5.0/lib/liquid/block.rb:82:in `render'
/home/synthetic/.gem/ruby/2.0.0/gems/liquid-2.5.0/lib/liquid/template.rb:124:in `render'
/home/synthetic/.gem/ruby/2.0.0/gems/liquid-2.5.0/lib/liquid/template.rb:132:in `render!'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/convertible.rb:77:in `render_liquid'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/convertible.rb:128:in `do_layout'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/post.rb:285:in `render'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/site.rb:230:in `block in render'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/site.rb:229:in `each'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/site.rb:229:in `render'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/site.rb:44:in `process'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/command.rb:18:in `process_site'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/commands/build.rb:23:in `build'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/lib/jekyll/commands/build.rb:7:in `process'
/home/synthetic/.gem/ruby/2.0.0/gems/jekyll-1.0.2/bin/jekyll:83:in `block (2 levels) in <top (required)>'
/home/synthetic/.gem/ruby/2.0.0/gems/commander-4.1.3/lib/commander/command.rb:180:in `call'
/home/synthetic/.gem/ruby/2.0.0/gems/commander-4.1.3/lib/commander/command.rb:180:in `call'
/home/synthetic/.gem/ruby/2.0.0/gems/commander-4.1.3/lib/commander/command.rb:155:in `run'
/home/synthetic/.gem/ruby/2.0.0/gems/commander-4.1.3/lib/commander/runner.rb:402:in `run_active_command'
/home/synthetic/.gem/ruby/2.0.0/gems/commander-4.1.3/lib/commander/runner.rb:66:in `run!'
/home/synthetic/.gem/ruby/2.0.0/gems/commander-4.1.3/lib/commander/delegates.rb:7:in `run!'
/home/synthetic/.gem/ruby/2.0.0/gems/commander-4.1.3/lib/commander/import.rb:10:in `block in <top (required)>'
Build Failed

The versions of gem and jekyll are 2.0.2 and 1.0.2.
How can I get past this error?

Last edited by synthetic (2013-06-09 16:14:15)

Offline

#2 2013-06-09 16:13:41

synthetic
Member
Registered: 2012-06-20
Posts: 16

Re: [SOLVED] Jekyll problem

Hi,
the error seems to be with Pygments as described here:
https://github.com/mojombo/jekyll/issues/1181
A workaround (if you're not using python 3) is to locally symlink python to python 2 and put that symlink into the path as described by github user aprescott:
https://github.com/tmm1/pygments.rb/iss … t-12694515

Offline

Board footer

Powered by FluxBB