Closed navaneeth closed 12 years ago
I'm also using arch linux and it seems that RubyPython goes bonkers with the nonstandard names arch linux uses for it's pyhtons (it looks like it tries to gather the version name from... the executable name itself, though I'm not entirely sure of that from the cursory glance I took).
Giving RubyPython 'python2.7' as executable name fixed it , you could try either 'python3' or 'python3.2'.
This can be fixed on RHEL/Fedora by installing python-devel.
Rendered non-applicable by pygments.rb 0.3.0
I am having the same issue on OS X with pygments 0.3.3
I am using Octopress blog engine which internally uses pygments.rb. I am using Archlinux with python version 3.2.3. I am getting the below error within pygments. Any help to fix this issue would be very helpful.
I have raised a request to octopress also - https://github.com/imathis/octopress/issues/704
Building site: source -> public/libvarnam File "", line 1 import sys; print sys.executable ^ SyntaxError: invalid syntax sh: - : invalid option Usage: sh [GNU long option] [option] ... sh [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help --init-file --login --noediting --noprofile --norc --posix --protected --rcfile --restricted --verbose --version Shell options: -irsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option sh: - : invalid option Usage: sh [GNU long option] [option] ... sh [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help --init-file --login --noediting --noprofile --norc --posix --protected --rcfile --restricted --verbose --version Shell options: -irsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.0.11/lib/ffi/library.rb:121:in block in ffi_lib': Could not open library 'lib.so': lib.so: cannot open shared object file: No such file or directory (LoadError) from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.0.11/lib/ffi/library.rb:88:inmap' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.0.11/lib/ffi/library.rb:88:in ffi_lib' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/rubypython-0.5.3/lib/rubypython/python.rb:29:inmodule:Python' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/rubypython-0.5.3/lib/rubypython/python.rb:21:in <top (required)>' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/rubypython-0.5.3/lib/rubypython.rb:261:inload' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/rubypython-0.5.3/lib/rubypython.rb:261:in reload_library' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/rubypython-0.5.3/lib/rubypython.rb:104:instart' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/pygments.rb-0.2.13/lib/pygments/ffi.rb:8:in start' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/pygments.rb-0.2.13/lib/pygments/ffi.rb:82:inhighlight' from /home/nkn/open_source/octopress/plugins/pygments_code.rb:24:in pygments' from /home/nkn/open_source/octopress/plugins/pygments_code.rb:14:inhighlight' from /home/nkn/open_source/octopress/plugins/backtick_code_block.rb:37:in block in render_code_block' from /home/nkn/open_source/octopress/plugins/backtick_code_block.rb:13:ingsub' from /home/nkn/open_source/octopress/plugins/backtick_code_block.rb:13:in render_code_block' from /home/nkn/open_source/octopress/plugins/octopress_filters.rb:12:inpre_filter' from /home/nkn/open_source/octopress/plugins/octopress_filters.rb:28:in pre_render' from /home/nkn/open_source/octopress/plugins/post_filters.rb:112:inblock in pre_render' from /home/nkn/open_source/octopress/plugins/post_filters.rb:111:in each' from /home/nkn/open_source/octopress/plugins/post_filters.rb:111:inpre_render' from /home/nkn/open_source/octopress/plugins/post_filters.rb:166:in do_layout' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/post.rb:189:inrender' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:193:in block in render' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:192:ineach' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:192:in render' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:40:inprocess' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/bin/jekyll:250:in <top (required)>' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/bin/jekyll:23:inload' from /home/nkn/.rvm/gems/ruby-1.9.3-p194/bin/jekyll:23:in `'