-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Liquid Exception (No such file or directory) when using Pygments #2551
Comments
Wasn't upgrading to Ruby v2.0.0 part of that workaround? I had to do this myself as well. Currently running Ruby v2.0.0p451, Python v2.7.6, Pygments v0.5.0. |
Hey @kleinfreund! Thanks for the quick reply. I just reread the StackOverflow question, which is here: http://stackoverflow.com/questions/17364028/jekyll-on-windows-pygments-not-working and upgrading Ruby wasn't part of the workaround, although I'll give it a try. Thank you! |
Back from installing Ruby 2.0.0 (p484) as per @kleinfreund's suggestion. Upon running
|
Regarding the above error, it seems to be a problem about version compatability. See here: brianmario/yajl-ruby#116 |
FYI, my yajl-ruby version is v1.1.0. Can you give us the |
Here we go:
|
Install pygments v0.5.0, maybe?^^ Also, are you a Windows user? If so, isn't |
So you still get that yajl error with yajl-ruby v1.1.0 and pygments v0.5.0? I updated my gems to the versions of your gem list to maybe reproduce, but everything works. |
Yep, still the same error and still not working 😦 New gem list:
|
Can you post the contents of that .md file? I have no idea. We're almost running the exact same setup. Strange. :/ |
Indeed it is strange. I've followed a few solutions but none of them work and also as you said our setup is almost exactly the same. Here is my post (it's not quite finished yet btw):
|
I can |
Have you tried the Rouge syntax highlighter? There's a patch you need to apply to pygments to get it to work on Windows IIRC. I think you have to set the python version to like |
Hey @parkr! I've tried Rouge but for some reason the error still appears. About setting the Python version. The closest thing I can think of is downgrading any version of Python above 3 below 3. I have Python 2.7.7 so that shouldn't be a problem. But if you can recall anything that'd be great! |
@winghouchan Is |
That is a good hint by parkr. Check if this is part of your
Open Start menu and enter Environment variables. If the value of |
Hey @parkr and @kleinfreund! Thank you both for your help! Without it I'd probably be pulling my hair out for another hour! Adding |
BOOM! @kleinfreund, you da 💣. Well done, sir. |
👍 |
The path helped me also, thanks a lot! |
Add python folder to path solved my problem, thanks. |
This works. Thanks. This post save my time. 👍 |
Beautiful! This worked for me too. I had added Python to the path under user variables, but not the system ones. Glad I came across this thread! |
Wow, guys! Thank you so much! Solved here! |
Note, that this issue still happens with Ruby >= 2.0 regardless if Python is in PATH. The issue arises from pygments.rb trying to load One can easily reproduce this by checking out Jekyll's own repository, doing Workaround: Change |
Thanx 💣 😌 |
great tip! thanks @XhmikosR |
@XhmikosR , can you explain in more detail how to change it exactly? I've been having this same problem. thanks. |
@chc24: this issue is fixed with pygments.rb 0.6.1, so just update your gems. |
THIS IS THE BEST THANK YOU SO MUCH I AM SORRY FOR CAPSLOCK BUT AFTER 3 HOURS OF FIDGETTING AROUND THIS FIXED IT! THANK YOU @kleinfreund |
I have the same - issue/error - my pygments.rb-0.6.3 |
@mslfire Can you see if your
|
That does it thanks - had to close and reopen command line!! |
Thanks. Adding the Pythod path did it for me. To be fair, the Jekyll guide could have been more clear about having Python installed. |
Hello. This ticket is being locked because it is stale and further comment here is no longer beneficial. Please create a new ticket with your bug or feature request and link back to this ticket. This will help us better manage your issue. If this is a question then please ask your question at https://talk.jekyllrb.com rather than on this ticket system. Thanks! |
Howdy all!
Upon running
jekyll build
orjekyll build --watch
I am getting the following error:You might be wondering why I'm using Pygments 0.5.0. That's because when using the version shipped with Jekyll (0.5.4) I experience the problem in issue #2052 . The workaround described by @michaelplus was to revert to Pygments 0.5.0, however it is obvious it did not work for me.
Looking at the error, it states "No such file or directory", however when I follow the path in the error (C:/Ruby193/lib...) I find that the path is valid.
Searching on StackOverflow, several suggestions have been made, including reverting to Pygments 0.5.0 and using Python < 3.0.0. I have already reverted to Pygments 0.5.0 and my Python version is 2.7.7 .
Anyone have any ideas?
The text was updated successfully, but these errors were encountered: