Jekyll for Windows Liquid Exception: Failed to get header

I am trying to use Jekyll on my Windows 7 (64-bit) PC.

I installed Ruby, Ruby Devkit, Python 2.7, Jekyll and Pyigs, but I get this error

E:\jekyll\my-site>jekyll serve Configuration file: E:/jekyll/my-site/_config.yml Source: E:/jekyll/my-site Destination: E:/jekyll/my-site/_site Generating... Liquid Exception: Failed to get header. in 2013-07-19-welcome-to-jekyll.markdown error: Failed to get header.. Use --trace to view backtrace 
+6
source share
4 answers

I also got this error and a couple of other similar errors, and finally got a solution: you need to have a couple of compatible versions of the required Ruby, Python and Pygments.

  • Install Ruby version 1.9.3-p448 (download here );
  • Install Python version 2.7.5 (download here );
  • Install Pygments 0.5.0

    gem uninstall pygments.rb
    gem install pygments.rb --version "=0.5.0"

Hope this helps.

Edited: Remember to add the correct PATH to the system variables. In my case, it was:

C: \ python27; C: \ Ruby193


To improve this content, there is a simple tutorial (written in Portuguese, but I think you can understand the steps, always considering the software / plugin versions listed above) - view the tutorial .

+6
source

Another possible reason for this Windows error message is because the Pygments script path contains spaces. Spent me figure this out ...

+4
source

In my situation, install pyices 0.5.0 or 0.5.4, both have problems. I fixed reinstall python 2.7.6. Please refer to the following answer: https://github.com/jekyll/jekyll/issues/1181#issuecomment-35963876

+3
source

I had two versions of python installed on my system. (Windows 8.1) Python22 and Python27. I removed Python22, added Python27 to system variables, and the problem was fixed.

0
source

Source: https://habr.com/ru/post/950105/


All Articles