undefined method `Py_IsInitialized' for RubyPython::Python:Module

495 Views Asked by At

I'm attempting to use Gollum on an Ubuntu server to serve up markdown pages but am receiving the following error whenever I attempt to highlight any syntax.

undefined method `Py_IsInitialized' for RubyPython::Python:Module

Stack Trace:

/var/lib/gems/1.8/gems/rubypython-0.5.3/lib/rubypython.rb in start
  return false if RubyPython::Python.Py_IsInitialized != 0

/var/lib/gems/1.8/gems/pygments.rb-0.2.3/lib/pygments/ffi.rb in start
  RubyPython.start

/var/lib/gems/1.8/gems/pygments.rb-0.2.3/lib/pygments/ffi.rb in highlight
  start unless pygments
1

There are 1 best solutions below

1
On

Check if you have these packages installed: 'python-pygments' and 'python-dev'.