Katello 2.2: hammer - undefined method `to_simple' for nil:NilClass (NoMethodError)

CentOS 6.6 minimal install. Katello install 'successful'. But…

hammer

/usr/lib/ruby/gems/1.8/gems/locale-2.0.5/lib/locale/taglist.rb:94:in
to_simple': undefined methodto_simple' for nil:NilClass (NoMethodError)
from
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/lib/hammer_cli/i18n.rb:115:in
locale' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/lib/hammer_cli/i18n.rb:147 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/bin/hammer:9 from /usr/bin/hammer:19:inload'
from /usr/bin/hammer:19

Any ideas? Cheers.

Fresh 2.2 install the same. Issue #10154 reported.

··· On Thursday, 19 March 2015 10:26:58 UTC, JC wrote: > > CentOS 6.6 minimal install. Katello install 'successful'. But... > > # hammer > /usr/lib/ruby/gems/1.8/gems/locale-2.0.5/lib/locale/taglist.rb:94:in > `to_simple': undefined method `to_simple' for nil:NilClass (NoMethodError) > from > /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/lib/hammer_cli/i18n.rb:115:in > `locale' > from > /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/lib/hammer_cli/i18n.rb:147 > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' > from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/bin/hammer:9 > from /usr/bin/hammer:19:in `load' > from /usr/bin/hammer:19 > > Any ideas? Cheers. >

This appears to be an issue with attempting to determine the language on
the system. Hammer is using the locale library to determine the current
locale of the machine that hammer is being run on. Can you check the values
of:

$LANGUAGE
$LANG
$LC_ALL
$LC_CTYPE

Eric

··· On Thu, Apr 16, 2015 at 3:06 AM, JC wrote:

Fresh 2.2 install the same. Issue #10154 reported.

On Thursday, 19 March 2015 10:26:58 UTC, JC wrote:

CentOS 6.6 minimal install. Katello install ‘successful’. But…

hammer

/usr/lib/ruby/gems/1.8/gems/locale-2.0.5/lib/locale/taglist.rb:94:in
to_simple': undefined methodto_simple’ for nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/lib/hammer_cli/i18n.rb:115:in
locale' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/lib/hammer_ cli/i18n.rb:147 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' from /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/bin/hammer:9 from /usr/bin/hammer:19:inload’
from /usr/bin/hammer:19

Any ideas? Cheers.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

For a record: rubygem locale < 2.0.6 is not compatible with Hammer. PRs
to Hammer [1] and packaging [2] were sent.

[1] https://github.com/theforeman/hammer-cli/pull/168
[2] https://github.com/theforeman/foreman-packaging/pull/625

··· On 04/16/2015 06:24 PM, Eric D Helms wrote: > > This appears to be an issue with attempting to determine the language > on the system. Hammer is using the locale library to determine the > current locale of the machine that hammer is being run on. Can you > check the values of: > > $LANGUAGE > $LANG > $LC_ALL > $LC_CTYPE > > > Eric > >

Where should the > 2.0.5 version (as an rpm) be sourced from? It is not
provided in the CentOS/RHEL/EPEL/Katello/Foreman repos.

··· On Thursday, 16 April 2015 22:30:59 UTC+1, Martin Bačovský wrote: > > On 04/16/2015 06:24 PM, Eric D Helms wrote: > > > > This appears to be an issue with attempting to determine the language > > on the system. Hammer is using the locale library to determine the > > current locale of the machine that hammer is being run on. Can you > > check the values of: > > > > $LANGUAGE > > $LANG > > $LC_ALL > > $LC_CTYPE > > > > > > Eric > > > > > For a record: rubygem locale < 2.0.6 is not compatible with Hammer. PRs > to Hammer [1] and packaging [2] were sent. > > [1] https://github.com/theforeman/hammer-cli/pull/168 > [2] https://github.com/theforeman/foreman-packaging/pull/625 >

Until we push it out into our repositories, you can grab it directly from
http://koji.katello.org/koji/buildinfo?buildID=8667

Eric

··· On Fri, Apr 17, 2015 at 3:39 AM, JC wrote:

Where should the > 2.0.5 version (as an rpm) be sourced from? It is not
provided in the CentOS/RHEL/EPEL/Katello/Foreman repos.

On Thursday, 16 April 2015 22:30:59 UTC+1, Martin Bačovský wrote:

On 04/16/2015 06:24 PM, Eric D Helms wrote:

This appears to be an issue with attempting to determine the language
on the system. Hammer is using the locale library to determine the
current locale of the machine that hammer is being run on. Can you
check the values of:

$LANGUAGE
$LANG
$LC_ALL
$LC_CTYPE

Eric

For a record: rubygem locale < 2.0.6 is not compatible with Hammer. PRs
to Hammer [1] and packaging [2] were sent.

[1] https://github.com/theforeman/hammer-cli/pull/168
[2] https://github.com/theforeman/foreman-packaging/pull/625


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Thanks Eric. I'm in business.

FYI only: I now get a warning…

hammer

/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/…/abstract.rb:68:
warning: already initialized constant DEFAULT_LABEL_INDENT
[ … then the usage statement … ]

··· On 17 April 2015 at 14:16, Eric D Helms wrote:

Until we push it out into our repositories, you can grab it directly from
http://koji.katello.org/koji/buildinfo?buildID=8667

Eric

On Fri, Apr 17, 2015 at 3:39 AM, JC mr.jamie.caldwell@gmail.com wrote:

Where should the > 2.0.5 version (as an rpm) be sourced from? It is not
provided in the CentOS/RHEL/EPEL/Katello/Foreman repos.

On Thursday, 16 April 2015 22:30:59 UTC+1, Martin Bačovský wrote:

On 04/16/2015 06:24 PM, Eric D Helms wrote:

This appears to be an issue with attempting to determine the language
on the system. Hammer is using the locale library to determine the
current locale of the machine that hammer is being run on. Can you
check the values of:

$LANGUAGE
$LANG
$LC_ALL
$LC_CTYPE

Eric

For a record: rubygem locale < 2.0.6 is not compatible with Hammer. PRs
to Hammer [1] and packaging [2] were sent.

[1] https://github.com/theforeman/hammer-cli/pull/168
[2] https://github.com/theforeman/foreman-packaging/pull/625


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/mJHRFikPPsg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Jamie.