bleskodev / rubyripper

Fork of the original rubyripper from code.google.com/p/rubyripper + some bugs fixes
125 stars 21 forks source link

Upgraded to 0.7.0rc2 - can't use gui version anymore #618

Open truscellino opened 5 years ago

truscellino commented 5 years ago

Hi all, I am using elementary OS 0.4 (base Ubuntu 16.04), and have been using rubyripper 0.7.0rc1 for a while, without issues. I installed 0.7.0rc2 today (without any warning, so installer told me that gtk2 gui is installed) and I can't use the gui version anymore... I have the following error which seems relating to GTK: /usr/lib/ruby/vendor_ruby/gtk2.rb: line 13 Gtk-MESSAGE **:Failed to load module "pantheon-filechooser-module" /usr/lib/ruby/vendor_ruby/gtk2.rb: line 13 Gtk-WARNING **:Unable to locate theme engine in module_path: "pixmap", /usr/lib/ruby/vendor_ruby/gtk2.rb: line 13 Gtk-WARNING **:Unable to locate theme engine in module_path: "pixmap", /usr/lib/ruby/vendor_ruby/gtk2.rb: line 13 Gtk-WARNING **:Unable to locate theme engine in module_path: "pixmap", /usr/lib/ruby/vendor_ruby/gtk2.rb: line 13 Gtk-WARNING **:Unable to locate theme engine in module_path: "pixmap", /usr/bin/rrip_gui:118:in ``block in setIconForWindow': uninitialized constant GraphicalUserInterface::GdkPixbuf (NameError) from /usr/bin/rrip_gui:116:in ``each' from /usr/bin/rrip_gui:116:in ``setIconForWindow' from /usr/bin/rrip_gui:109:in ``prepareMainWindow' from /usr/bin/rrip_gui:63:in ``start' from /usr/bin/rrip_gui:414:in <main>' I have all the ruby-cairo and ruby-cairo-gobject installed... very strange. The cli version works perfectly, obviously.

Anyone having similar issues? Thanks

bleskodev commented 5 years ago

@truscellino Hi, looking at the error messages the following seems suspect to me: '/usr/bin/rrip_gui:116'. If I'm not mistaken, rrip_gui ruby files are part of rubyripper 0.6 and older versions. Are you sure you are launching the correct gui version? Do you have the old (<0.7) version installed? You can launch the gui version from the command line by running: <path to rubyripper 0.7 installation>/bin/rubyripper_gtk2 Does this work or you have the same error?

bleskodev commented 5 years ago

@truscellino Hm, forget my previous message, I'm wrong. Installer renames rubyripper_gtk2 to rrip_gui. Sorry for the confusion.

bleskodev commented 5 years ago

@truscellino After some more investigation, this 'problem' is introduced in rc2 (commit: Fix depreciation message for GdkPixbuf creation. ). It looks like you have an old version of gdk_pixbuf2 gem installed. Can you post the version of gdk_pixbuf2 gem you have? I might be able to detect this with the installer if I have correct info on which versions are not good. You will probably need a version 3.x.x (I have 3.2.4). (to list the gems, run 'gem list' in the terminal)

truscellino commented 5 years ago

Hi, thank you for quick answers, much appreciated! I just checked, and in Ubuntu 16.04 it's version 2.x.x apparently:

Knowing the problem, I have different ways around, like coming back to rc1 or somehow install the right library somewhere where it can be linked. Thanks, Marc

bleskodev commented 5 years ago

It is probably ruby-gdk-pixbuf2 version which is too old (mine corresponds to gem version 3.2.4.x). Maybe you should try to update your gems? Can you also run 'gem list' in the terminal and give the version of gkd_pixbuf2 gem?

mauromol commented 5 years ago

Hi, I confirm rubyripper_gtk2 does not work in Linux Mint 18.3 (based on Ubuntu 16.04):

./bin/rubyripper_gtk2:118:in `block in setIconForWindow': uninitialized constant GraphicalUserInterface::GdkPixbuf (NameError)
        from ./bin/rubyripper_gtk2:116:in `each'
        from ./bin/rubyripper_gtk2:116:in `setIconForWindow'
        from ./bin/rubyripper_gtk2:109:in `prepareMainWindow'
        from ./bin/rubyripper_gtk2:63:in `start'
        from ./bin/rubyripper_gtk2:414:in `<main>'

I'm not a ruby expert, I don't know how I could update gdk_pixbuf2... isn't it possible to make it compatible with Ubuntu 16.04? Otherwise, how can I switch to a version that works? I cloned the git repository and switch to the stable branch right now. Thank you!

Thovthe commented 5 years ago

RubyRipper 0.7.0-RC2 GUI works on Mint 19

truscellino commented 5 years ago

It also works on Ubuntu studio 19.04, so I guess any system based on Ubuntu 16.04 will show issue with old libraries, whereas 18.04 / 19.04 are OK...