Package Details: gnome-screenruler 0.9.6-6

Git Clone URL: https://aur.archlinux.org/gnome-screenruler.git (read-only, click to copy)
Package Base: gnome-screenruler
Description: ScreenRuler lets you measure objects on your screen using six different metrics.
Upstream URL: https://launchpad.net/screenruler
Licenses: GPL
Submitter: gborzi
Maintainer: kylesferrazza
Last Packager: kylesferrazza
Votes: 37
Popularity: 0.000000
First Submitted: 2010-02-19 23:50 (UTC)
Last Updated: 2018-11-05 07:24 (UTC)

Latest Comments

1 2 3 4 Next › Last »

dreieck commented on 2023-08-18 06:41 (UTC)

After installing this package, when running, it fails for me with wrong ruby dependency versions:

Loading libraries...
/usr/lib/ruby/3.0.0/rubygems/specification.rb:1453:in `rescue in block in activate_dependencies': Could not find 'atk' (= 3.4.3) among 101 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/felics/.local/share/gem/ruby/3.0.0:/usr/lib/ruby/gems/3.0.0' at: /usr/lib/ruby/gems/3.0.0/specifications/gtk2-3.4.3.gemspec, execute `gem env` for more information
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1450:in `block in activate_dependencies'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1439:in `each'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1439:in `activate_dependencies'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1421:in `activate'
    from /usr/lib/ruby/3.0.0/rubygems.rb:211:in `rescue in try_activate'
    from /usr/lib/ruby/3.0.0/rubygems.rb:204:in `try_activate'
    from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:153:in `rescue in require'
    from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `block in require'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `each'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `require'
    from /usr/bin/screenruler:51:in `<main>'
/usr/lib/ruby/3.0.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'atk' (= 3.4.3) - did find: [atk-4.1.2] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/home/felics/.local/share/gem/ruby/3.0.0:/usr/lib/ruby/gems/3.0.0' , execute `gem env` for more information
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1451:in `block in activate_dependencies'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1439:in `each'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1439:in `activate_dependencies'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1421:in `activate'
    from /usr/lib/ruby/3.0.0/rubygems.rb:211:in `rescue in try_activate'
    from /usr/lib/ruby/3.0.0/rubygems.rb:204:in `try_activate'
    from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:153:in `rescue in require'
    from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `block in require'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `each'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `require'
    from /usr/bin/screenruler:51:in `<main>'
/usr/lib/ruby/3.0.0/rubygems/specification.rb:1453:in `rescue in block in activate_dependencies': Could not find 'atk' (= 3.4.3) among 101 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/felics/.local/share/gem/ruby/3.0.0:/usr/lib/ruby/gems/3.0.0' at: /usr/lib/ruby/gems/3.0.0/specifications/gtk2-3.4.3.gemspec, execute `gem env` for more information
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1450:in `block in activate_dependencies'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1439:in `each'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1439:in `activate_dependencies'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1421:in `activate'
    from /usr/lib/ruby/3.0.0/rubygems.rb:205:in `try_activate'
    from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:153:in `rescue in require'
    from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `block in require'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `each'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `require'
    from /usr/bin/screenruler:51:in `<main>'
/usr/lib/ruby/3.0.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'atk' (= 3.4.3) - did find: [atk-4.1.2] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/home/felics/.local/share/gem/ruby/3.0.0:/usr/lib/ruby/gems/3.0.0' , execute `gem env` for more information
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1451:in `block in activate_dependencies'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1439:in `each'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1439:in `activate_dependencies'
    from /usr/lib/ruby/3.0.0/rubygems/specification.rb:1421:in `activate'
    from /usr/lib/ruby/3.0.0/rubygems.rb:205:in `try_activate'
    from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:153:in `rescue in require'
    from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `block in require'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `each'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `require'
    from /usr/bin/screenruler:51:in `<main>'
<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- gtk2 (LoadError)
    from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `block in require'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `each'
    from /usr/share/screenruler/utils/addons_ruby.rb:59:in `require'
    from /usr/bin/screenruler:51:in `<main>'

Regards!

necklace commented on 2023-02-12 09:23 (UTC)

Fails starting for me with

<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:96:in `require': /usr/lib/ruby/gems/3.0.0/extensions/x86_64-linux/3.0.0/cairo-1.17.8/cairo.so: undefined symbol: cairo_tee_surface_index - /usr/lib/ruby/gems/3.0.0/extensions/x86_64-linux/3.0.0/cairo-1.17.8/cairo.so (LoadError)
[...]

willydee68 commented on 2022-12-07 12:16 (UTC)

In case someone else stumbles upon this: some gem dependencies are obviously outdated. To make it work, I had to execute the following:

gem install --version 3.4.3 atk pango gdk_pixbuf2

lmat commented on 2021-04-14 12:44 (UTC)

Just installed for the first time and ran and I get

/usr/lib/ruby/2.7.0/rubygems/dependency.rb:311:in to_specs': Could not find 'red-colors' (>= 0) among 62 total gem(s) Checked in 'GEM_PATH=/home/lawsa/.gem/ruby/2.7.0:/usr/lib/ruby/gems/2.7.0' , executegem env` for more information

it sort of looks like I need to install the "red-colors" gem? I don't work with ruby, so I don't know how to do that right off, but I'm guessing this shouldn't happen in the first place after a proper installation. Thank you for maintaining this package!

archuser5432 commented on 2020-03-28 09:31 (UTC)

Doesnt build, missing dependency -> ruby-gettext

kzoli429 commented on 2020-01-18 13:10 (UTC)

It does not run. $ screenruler Traceback (most recent call last): 2: from /usr/bin/screenruler:25:in <main>' 1: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:inrequire' /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- gettext (LoadError)

Unfortunately, neither installing ruby-cairo-gobject nor ruby-locale could make it start.

spearthistle commented on 2019-08-28 15:45 (UTC)

I have been trying to install this AUR for a while now. It started working after I installed the repository "ruby-cairo-gobject".

dviktor commented on 2019-02-12 09:55 (UTC)

With the update of ruby-gettext gnome-screenruler needs ruby-locale now. Please add this dependency

Rogach commented on 2018-10-21 11:21 (UTC)

@somepaulo gnome-screenruler creates a helper method Kernel.loop (with 2 arguments), overriding system-wide Kernel.loop (with 0 arguments), and that system-wide method is used when loading gems - which results in this error. Renaming the helper fixes the issue. Here's the PKGBUILD diff that I applied:

--- PKGBUILD.orig   2018-10-21 14:10:05.210931908 +0300
+++ PKGBUILD    2018-10-21 14:13:59.740510883 +0300
@@ -26,6 +26,10 @@

   # Fix path
   patch -Np0 -i $srcdir/path_patch.diff
+
+  # Fix Kernel.loop shadowing issue
+  sed -i 's/loop/screenruler_loop/' $srcdir/screenruler/utils/addons_ruby.rb
+  sed -i 's/loop/screenruler_loop/' $srcdir/screenruler/ruler_window.rb
 }

 package() {

somepaulo commented on 2018-04-04 22:34 (UTC) (edited on 2018-04-04 22:41 (UTC) by somepaulo)

On the latest and greatest Gnome 3.28 I get this:

~>$ screenruler
Loading libraries...
/usr/share/screenruler/utils/addons_ruby.rb:42: warning: constant ::Fixnum is deprecated
Traceback (most recent call last):
    17: from /usr/bin/screenruler:51:in <main>'
    16: from /usr/share/screenruler/utils/addons_ruby.rb:59:inrequire'
    15: from /usr/share/screenruler/utils/addons_ruby.rb:59:in each'
    14: from /usr/share/screenruler/utils/addons_ruby.rb:59:inblock in require'
    13: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in require'
    12: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:128:inrescue in require'
    11: from /usr/lib/ruby/2.5.0/rubygems.rb:213:in try_activate'
    10: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1063:infind_by_path'
     9: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1063:in find'
     8: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1063:ineach'
     7: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1064:in block in find_by_path'
     6: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:46:incompatible?'
     5: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:12:in bundler_version'
     4: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:29:inbundler_version_with_reason'
     3: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:81:in lockfile_version'
     2: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:93:inlockfile_contents'
     1: from /usr/lib/ruby/2.5.0/rubygems/util.rb:116:in traverse_parents'
/usr/share/screenruler/utils/addons_ruby.rb:62:inloop': wrong number of arguments (given 0, expected 2..3) (ArgumentError)

Thank you for looking into this.