rbot fails to load, possible ruby/gettext issue

Bug #1084761 reported by PeterJCLaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rbot (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm using an x64 system, with a British locale. Having installed rbot & tried to run it, it crashes immediately, even if passed "--help"!
I've tried installing ruby-full in addition, which had no effect.

The actual crash:
$ rbot
/usr/lib/ruby/vendor_ruby/rbot/ircbot.rb:976: warning: assigned but unused variable - e
/usr/lib/ruby/vendor_ruby/rbot/rbotconfig.rb:36: warning: assigned but unused variable - gemname
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/lib/ruby/vendor_ruby/rbot/rbotconfig.rb:36.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from /usr/lib/ruby/vendor_ruby/rbot/rbotconfig.rb:36.
/usr/lib/ruby/vendor_ruby/rbot/load-gettext.rb:74: warning: assigned but unused variable - ret
/usr/lib/ruby/vendor_ruby/gettext/runtime/textdomain_manager.rb:82: warning: assigned but unused variable - msg
/usr/lib/ruby/vendor_ruby/gettext/runtime/mofile.rb:188: warning: assigned but unused variable - i
/usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:88: warning: `%' after local variable is interpreted as binary operator
/usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:88: warning: even though it seems like string literal
/usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:101: warning: assigned but unused variable - search_files
log writing failed. stack level too deep
log writing failed. stack level too deep
log writing failed. stack level too deep
log writing failed. stack level too deep
log writing failed. stack level too deep
log writing failed. stack level too deep
log writing failed. stack level too deep
log writing failed. stack level too deep
log writing failed. stack level too deep
/usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:65:in `%': key{locale} not found (KeyError)
 from /usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:65:in `block in default_path_rules'
 from /usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:64:in `select'
 from /usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:64:in `default_path_rules'
 from /usr/lib/ruby/vendor_ruby/locale/util/memoizable.rb:80:in `block in default_path_rules'
 from /usr/lib/ruby/vendor_ruby/locale/util/memoizable.rb:95:in `block in _memoize_dup'
 from /usr/lib/ruby/vendor_ruby/locale/util/memoizable.rb:87:in `_memoize'
 from /usr/lib/ruby/vendor_ruby/locale/util/memoizable.rb:95:in `_memoize_dup'
 from /usr/lib/ruby/vendor_ruby/locale/util/memoizable.rb:79:in `default_path_rules'
 from /usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:82:in `initialize'
 from /usr/lib/ruby/vendor_ruby/gettext/runtime/textdomain.rb:62:in `new'
 from /usr/lib/ruby/vendor_ruby/gettext/runtime/textdomain.rb:62:in `initialize'
 from /usr/lib/ruby/vendor_ruby/gettext/runtime/textdomain_manager.rb:227:in `new'
 from /usr/lib/ruby/vendor_ruby/gettext/runtime/textdomain_manager.rb:227:in `create_or_find_textdomain'
 from /usr/lib/ruby/vendor_ruby/gettext/runtime/textdomain_manager.rb:71:in `bind_to'
 from /usr/lib/ruby/vendor_ruby/gettext.rb:85:in `bindtextdomain_to'
 from /usr/lib/ruby/vendor_ruby/gettext.rb:66:in `bindtextdomain'
 from /usr/lib/ruby/vendor_ruby/rbot/load-gettext.rb:44:in `<top (required)>'
 from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
 from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
 from /usr/lib/ruby/vendor_ruby/rbot/ircbot.rb:144:in `<top (required)>'
 from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
 from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
 from /usr/bin/rbot:94:in `<main>'

Infos I hope are useful:
$ lsb_release -rd
Description: Ubuntu 12.10
Release: 12.10
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"
$ uname -a
Linux <name-redacted> 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 10:26:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
$ apt-cache policy rbot
rbot:
  Installed: 0.9.15+post20100705+gitb3aa806-3
  Candidate: 0.9.15+post20100705+gitb3aa806-3
  Version table:
 *** 0.9.15+post20100705+gitb3aa806-3 0
        500 http://gb.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
        100 /var/lib/dpkg/status
$ apt-cache policy ruby
ruby:
  Installed: 4.9
  Candidate: 4.9
  Version table:
 *** 4.9 0
        500 http://gb.archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages
        100 /var/lib/dpkg/status
$ apt-cache policy ruby-locale
ruby-locale:
  Installed: 2.0.5-5
  Candidate: 2.0.5-5
  Version table:
 *** 2.0.5-5 0
        500 http://gb.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Derrick Coetzee (o-dc) wrote :
Download full text (4.4 KiB)

I am also experiencing this issue. I am on Ubuntu 12.10 x64 with a US locale, and upon running rbot receive this output:

/usr/lib/ruby/vendor_ruby/rbot/ircbot.rb:976: warning: assigned but unused variable - e
/usr/lib/ruby/vendor_ruby/rbot/rbotconfig.rb:36: warning: assigned but unused variable - gemname
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/lib/ruby/vendor_ruby/rbot/rbotconfig.rb:36.
D, [2013/08/15 23:13:45#15449] DEBUG -- ircbot.rb:127:in `<top (required)>': debug test
I, [2013/08/15 23:13:45#15449] INFO -- ircbot.rb:128:in `<top (required)>': log test
W, [2013/08/15 23:13:45#15449] WARN -- ircbot.rb:129:in `<top (required)>': warning test
E, [2013/08/15 23:13:45#15449] ERROR -- ircbot.rb:130:in `<top (required)>': error test
F, [2013/08/15 23:13:45#15449] FATAL -- ircbot.rb:131:in `<top (required)>': fatal test
D, [2013/08/15 23:13:45#15449] DEBUG -- rbotconfig.rb:28:in `<module:Config>': trying to load rubygems
D, [2013/08/15 23:13:45#15449] DEBUG -- rbotconfig.rb:35:in `<module:Config>': loaded rubygems, looking for rbot version 0.9.15 (rbot-0.9.15)
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from /usr/lib/ruby/vendor_ruby/rbot/rbotconfig.rb:36.
D, [2013/08/15 23:13:45#15449] DEBUG -- rbotconfig.rb:37:in `<module:Config>': got gem
D, [2013/08/15 23:13:45#15449] DEBUG -- rbotconfig.rb:43:in `<module:Config>': not installed via rubygems
/usr/lib/ruby/vendor_ruby/rbot/load-gettext.rb:74: warning: assigned but unused variable - ret
/usr/lib/ruby/vendor_ruby/gettext/runtime/textdomain_manager.rb:82: warning: assigned but unused variable - msg
/usr/lib/ruby/vendor_ruby/gettext/runtime/mofile.rb:188: warning: assigned but unused variable - i
/usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:88: warning: `%' after local variable is interpreted as binary operator
/usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:88: warning: even though it seems like string literal
/usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:101: warning: assigned but unused variable - search_files
/usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:65:in `%': key{locale} not found (KeyError)
        from /usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:65:in `block in default_path_rules'
        from /usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:64:in `select'
        from /usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:64:in `default_path_rules'
        from /usr/lib/ruby/vendor_ruby/locale/util/memoizable.rb:80:in `block in default_path_rules'
        from /usr/lib/ruby/vendor_ruby/locale/util/memoizable.rb:95:in `block in _memoize_dup'
        from /usr/lib/ruby/vendor_ruby/locale/util/memoizable.rb:87:in `_memoize'
        from /usr/lib/ruby/vendor_ruby/locale/util/memoizable.rb:95:in `_memoize_dup'
        from /usr/lib/ruby/vendor_ruby/locale/util/memoizable.rb:79:in `default_path_rules'
        from /usr/lib/ruby/vendor_ruby/gettext/runtime/locale_path.rb:82:in `initialize'
        from /usr/lib/ruby/vendor_ruby/gettext/runtim...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.