Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

John Knott's Profile

GitHub User: johnknott


Comments by John Knott


If you are having problems with the Albino gem returning nothing, make sure you are running Pygmentize under Python2.

I was encountering this issue from the command line:

pygmentize -l ruby -f html -O encoding=utf-8 test.rb

*** Error while highlighting:
TypeError: must be str, not bytes
   (file "/usr/lib/python3.2/", line 356, in write)

In Arch Linux for example the default Python is Python3.2, installing Pygmentize under Python2.7 solved this for me.