Project

General

Profile

Bug #13606

Package tfm-rubygem-hammer_cli_csv fails to detect gettext

Added by Erik van Pienbroek almost 7 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

On a Foreman 1.10.1/Katello 2.4 environment I just tried to install tfm-rubygem-hammer_cli_csv-1.0.1-8.el7. After installation I've tried to use the 'hammer csv' command, but unfortunately this results in an error:

Warning: An error occured while loading module hammer_cli_csv
Error: No such sub-command 'csv'

When I run 'hammer --debug csv' I can see that it fails to detect gettext:

[ INFO 2016-02-08 22:06:27 Init] Initialization of Hammer CLI (0.5.1) has started...
[DEBUG 2016-02-08 22:06:27 Init] Running at ruby 1.9.3-p484
[ INFO 2016-02-08 22:06:27 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2016-02-08 22:06:27 Init] Configuration from the file /etc/hammer/cli.modules.d/csv.yml has been loaded
[ INFO 2016-02-08 22:06:27 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2016-02-08 22:06:27 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
[ INFO 2016-02-08 22:06:27 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded
[ INFO 2016-02-08 22:06:27 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
[ INFO 2016-02-08 22:06:27 Init] Configuration from the file /etc/hammer/cli.modules.d/gutterball.yml has been loaded
[ INFO 2016-02-08 22:06:27 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
[ INFO 2016-02-08 22:06:27 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
[ERROR 2016-02-08 22:06:27 Modules] Error while loading module hammer_cli_csv
Warning: An error occured while loading module hammer_cli_csv
[ERROR 2016-02-08 22:06:27 Modules] <Gem::LoadError> Could not find gettext (~> 2.0) amongst [actionmailer-3.2.8, actionpack-3.2.8, activemodel-3.2.8, activerecord-3.2.8, activeresource-3.2.8, activesupport-3.2.8, addressable-2.3.6, algebrick-0.7.3, ancestry-2.0.0, anemone-0.7.2, angular-rails-templates-0.1.2, ansi-1.4.3, apipie-bindings-0.0.14, apipie-params-0.0.4, apipie-rails-0.2.6, archive-tar-minitar-0.5.2, arel-3.0.2, audited-3.0.0, audited-activerecord-3.0.0, autoparse-0.3.3, awesome_print-1.0.2, bastion-2.0.3, bigdecimal-1.1.0, builder-3.0.0, bundler-1.3.5, bundler_ext-0.3.0, clamp-1.0.0, coffee-rails-3.2.2, coffee-script-2.2.0, coffee-script-source-1.3.3, colorize-0.7.7, commonjs-0.2.7, concurrent-ruby-1.0.0, concurrent-ruby-edge-0.2.0, daemons-1.2.3, deep_cloneable-2.1.1, deface-1.0.1, diff-lcs-1.1.3, diffy-3.0.1, docker-api-1.17.0, dynflow-0.8.9, erubis-2.7.0, excon-0.45.3, execjs-1.4.0, extlib-0.9.16, facter-2.4.0, faraday-0.9.1, fast_gettext-0.9.2, fog-1.34.0, fog-aws-0.7.4, fog-core-1.32.1, fog-google-0.1.0, fog-json-1.0.2, fog-libvirt-0.0.2, fog-xml-0.1.2, foreigner-1.7.1, foreman-tasks-0.7.11, foreman_bootdisk-6.1.0, foreman_discovery-4.1.2, foreman_docker-1.4.1, foreman_gutterball-0.0.1, foreman_hooks-0.3.9, foreman_setup-3.0.2, foreman_templates-2.0.1, formatador-0.2.1, friendly_id-4.0.10.1, gettext_i18n_rails-1.2.1, git-1.2.5, google-api-client-0.8.2, hammer_cli-0.5.1, hammer_cli_csv-1.0.1, hammer_cli_foreman-0.5.1, hammer_cli_foreman_bootdisk-0.1.3, hammer_cli_foreman_docker-0.0.3, hammer_cli_foreman_tasks-0.0.9, hammer_cli_gutterball-1.0.1, hammer_cli_import-0.10.22, hammer_cli_katello-0.0.19, hashie-2.0.5, hashr-0.0.22, highline-1.6.21, hike-1.2.1, hooks-0.2.2, i18n-0.6.0, io-console-0.3, ipaddress-0.8.0, journey-1.0.4, jquery-ui-rails-4.1.2, json-1.5.5, jwt-1.2.0, katello-2.4.0, launchy-2.4.3, ldap_fluff-0.4.0, less-2.5.1, less-rails-2.5.0, little-plugger-1.1.3, locale-2.0.9, logging-1.8.2, mail-2.4.4, mime-types-1.19, minitest-2.5.1, multi_json-1.10.1, multi_json-1.3.6, multipart-post-1.2.0, net-http-persistent-2.7, net-ldap-0.11, net-scp-1.1.0, net-ssh-2.9.2, netrc-0.7.7, nokogiri-1.6.6.2, oauth-0.4.7, parse-cron-0.1.4, passenger-4.0.18, pg-0.12.2, polyglot-0.3.3, powerbar-1.0.11, qpid_messaging-0.30.0, rabl-0.11.6, rack-1.4.1, rack-cache-1.2, rack-jsonp-1.3.1, rack-protection-1.2.0, rack-ssl-1.3.2, rack-test-0.6.1, rails-3.2.8, rails-i18n-3.0.1, railties-3.2.8, rake-0.9.2.2, rbovirt-0.0.35, rbvmomi-1.8.2, rdoc-3.9.5, rest-client-1.6.7, retriable-1.4.1, robotex-1.0.0, ruby-libvirt-0.5.2, ruby2ruby-2.1.3, ruby_parser-3.6.3, runcible-1.3.5, safemode-1.2.2, scoped_search-3.2.2, secure_headers-1.4.1, sequel-4.20.0, sexp_processor-4.4.4, signet-0.6.0, sinatra-1.3.2, sprockets-2.12.3, sprockets-2.4.5, sshkey-1.6.0, strong_parameters-0.2.1, table_print-1.5.1, thor-0.18.1, tilt-1.3.3, tire-0.6.2, treetop-1.4.10, trollop-2.0, turbolinks-2.5.3, tzinfo-0.3.33, validates_lengths_from_database-0.4.0, wicked-1.1.0, will_paginate-3.0.2]
    /opt/rh/ruby193/root/usr/share/rubygems/rubygems/dependency.rb:247:in `to_specs'
    /opt/rh/ruby193/root/usr/share/rubygems/rubygems/specification.rb:777:in `block in activate_dependencies'
    /opt/rh/ruby193/root/usr/share/rubygems/rubygems/specification.rb:766:in `each'
    /opt/rh/ruby193/root/usr/share/rubygems/rubygems/specification.rb:766:in `activate_dependencies'
    /opt/rh/ruby193/root/usr/share/rubygems/rubygems/specification.rb:750:in `activate'
    /opt/rh/ruby193/root/usr/share/rubygems/rubygems.rb:212:in `rescue in try_activate'
    /opt/rh/ruby193/root/usr/share/rubygems/rubygems.rb:209:in `try_activate'
    /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:59:in `rescue in require'
    /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1/lib/hammer_cli/modules.rb:78:in `require_module'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1/lib/hammer_cli/modules.rb:57:in `load!'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1/lib/hammer_cli/modules.rb:72:in `load'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1/lib/hammer_cli/modules.rb:83:in `block in load_all'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1/lib/hammer_cli/modules.rb:82:in `each'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1/lib/hammer_cli/modules.rb:82:in `load_all'
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1/bin/hammer:112:in `<top (required)>'
    /usr/bin/hammer:23:in `load'
    /usr/bin/hammer:23:in `<main>'

I already tried to manually install the package tfm-rubygem-gettext-3.1.4-3.el7 but even with this the 'hammer csv' command also fails.
The tfm-rubygem-hammer_cli_csv-1.0.1-8.el7 package provides the gem gettext-3.1.4, but that doesn't satisfy the requirement from hammer_cli_csv for gettext (~> 2.0)

History

#1 Updated by Erik van Pienbroek almost 7 years ago

The gettext dependency seems to be dropped upstream recently as can be seen on https://github.com/Katello/hammer-cli-csv/commit/6f221b512cd2cbdf58a590f08479c6580698ae39#diff-47a6305b01b3fb14a7db42be13725c81L23
Therefore it should be good enough to update the tfm-rubygem-hammer_cli_csv package to version 1.0.2 to get this issue resolved

#2 Updated by Eric Helms almost 7 years ago

  • Legacy Backlogs Release (now unused) set to 86

#3 Updated by Eric Helms over 6 years ago

  • Status changed from New to Resolved

#4 Updated by alvin starr over 6 years ago

this also exists in 2.4. There is no 1.0.2 version of the package.

#5 Updated by Eric Helms over 6 years ago

  • Project changed from Packaging to Hammer CLI CSV

#6 Updated by Greg Sutcliffe over 4 years ago

  • Target version deleted (Katello 3.0.0)

Also available in: Atom PDF