Closed MegasAlexios closed 5 years ago
I am struggling with this same error. I suspect there is a dependency for specific version of ruby-gtk2, but the older versions of ruby-gtk2 won't compile on my system.
The API of ruby-gtk2
had changed, which caused a breakage.
I have adapted the code to their new version and moved pdfwalker
to a separate gem / repository for better handling of dependencies and separating the issues.
The repository is now at https://github.com/gdelugre/pdfwalker and it can be installed separately with gem install pdfwalker
.
I installed Ruby 2.4.1-1 (x86), then I launched': 'Pango::STYLE_NORMAL' has been deprecated. Use 'Pango::Style::NORMAL' or ':normal'.
C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/treeview.rb:382:in '
gem install origami
and, as I wanted to use the gui version, also didgem install gtk2
(I'm on a Win 10 pro x64 machine) Everything fine so far (verified the gtk2 installation withruby -rgtk2 -e "Gtk::Window.new.show;Gtk.main"
and a window appeared). But still can't use "pdfwalker", this is the output I get: C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/treeview.rb:54:in<class:PDFTree>': 'Pango::WEIGHT_NORMAL' has been deprecated. Use 'Pango::Weight::NORMAL' or ':normal'. C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/treeview.rb:54:in
reset_appearance': 'Pango::WEIGHT_BOLD' has been deprecated. Use 'Pango::Weight::BOLD' or ':bold'. C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/treeview.rb:391:in
reset_appearance': 'Pango::STYLE_ITALIC' has been deprecated. Use 'Pango::Style::ITALIC' or ':italic'. C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/treeview.rb:396:inreset_appearance': 'Pango::STYLE_OBLIQUE' has been deprecated. Use 'Pango::Style::OBLIQUE' or ':oblique'. C:/Ruby24/lib/ruby/gems/2.4.0/gems/glib2-3.1.6-x86-mingw32/lib/glib2/deprecatable.rb:112:in
const_missing': uninitialized constant Pango::FontDescription::Weight (NameError) Did you mean? Pango::Weight from C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/treeview.rb:63:ininitialize' from C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/treeview.rb:28:in
new' from C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/treeview.rb:28:increate_treeview' from C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/walker.rb:202:in
init_interface' from C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/walker.rb:79:ininitialize' from C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/walker.rb:59:in
new' from C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/gui/walker.rb:59:instart' from C:/Ruby24/lib/ruby/gems/2.4.0/gems/origami-2.0.3/bin/pdfwalker:6:in
<top (required)>' from C:/Ruby24/bin/pdfwalker:22:inload' from C:/Ruby24/bin/pdfwalker:22:in