未定义的方法`Py_IsInitialized' for RubyPython :: Python:Module

时间:2011-11-03 01:52:22

标签: python ruby gollum-wiki

我正在尝试在Ubuntu服务器上使用Gollum来提供markdown页面,但每当我尝试突出显示任何语法时都会收到以下错误。

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

堆栈追踪:

/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 个答案:

答案 0 :(得分:3)

检查您是否安装了这些软件包:' python-pygments '和' python-dev '。