require PDFNetRuby crashes with `require': wrong argument type nil (expected Data) (TypeError)

288 views
Skip to first unread message

Martin Nilsson

unread,
Sep 4, 2013, 3:05:41 PM9/4/13
to pdfne...@googlegroups.com
OS X Mavericks
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.0.0]

I've tried without having the .dylib in /usr/lib so I know that it indeed tries to require the file.

I am getting this error:

`require': wrong argument type nil (expected Data) (TypeError)
from /Users/martin/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from test.rb:1:in `<main>'


Thanks for helping,
Martin

Vincent Ycasas

unread,
Sep 4, 2013, 3:11:31 PM9/4/13
to pdfne...@googlegroups.com
PDFNetC only supports Ruby 1.9.1x. You may need to switch to Ruby 1.9.3 in order for the Ruby bindings to work.

Martin Nilsson

unread,
Sep 4, 2013, 4:54:24 PM9/4/13
to pdfne...@googlegroups.com
Just confirmed this, thank you for the swift reply!

When will 2.0.0 be supported? It's after all the standard version now.

Cheers,
Martin

Support

unread,
Mar 4, 2014, 2:51:53 PM3/4/14
to pdfne...@googlegroups.com

FYI: We open sourced PDFNet SWIG bindings for Ruby, PHP, and Python so you should be able to compile a binding for Ruby 2+.

Reply all
Reply to author
Forward
0 new messages