bugZoneCheck - Bugs: bug #19875, Config is not a class (TypeError)


bug #19875: Config is not a class (TypeError)

Submitted by:  Stephane Bortzmeyer <bortzmeyer>
Submitted on:  Tue 15 May 2007 07:37:38 AM UTC  
Category: configSeverity: High
Priority: 5 - NormalItem Group: Crash/Error
Status: FixedPrivacy: Public
Assigned to: Fabien CHABANNE <chabannf>Open/Closed: Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 02 Jun 2010 09:43:19 AM UTC, comment #2:

Fixed in CVS
All classes belong to a module most of them are in ZoneCheck::

Fabien CHABANNE <chabannf>
Project MemberIn charge of this item.
Tue 15 May 2007 07:54:13 AM UTC, comment #1:

The attached patch seems to fix the problem, by renaming the Config class to ZC_Config. May be using a module namespace, as suggested in http://rubyforge.org/pipermail/rubygems-developers/2004-September.txt.gz, would be better?

(file #12770)

Stephane Bortzmeyer <bortzmeyer>
Project Administrator
Tue 15 May 2007 07:37:38 AM UTC, original submission:

With recent versions of Ruby, apparently comes a RubyGems which define a class named... Config (see http://www.kde-apps.org/content/show.php?content=55644 for an example).

Therefore, Zonecheck crashes becauses it has a class Config (in zc/config.rb which is not qualified by a module)

% zonecheck gnu.org
/usr/local/libexec/zonecheck/zc/config.rb:43: Config is not a class (TypeError)
from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
from /usr/local/libexec/zonecheck/zc/zonecheck.rb:34
from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
from /local/bin/zonecheck:204

% ruby -v
ruby 1.8.5 (2006-12-04 patchlevel 2) [x86_64-linux]

Stephane Bortzmeyer <bortzmeyer>
Project Administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #12770:  config-gems.patch.gz added by bortzmeyer (2KiB - application/x-gzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by chabannf (Updated the item)
  • -unavailable- added by bortzmeyer (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 Jun 2010 02:01:10 PM UTCchabannfOpen/ClosedOpen=>Closed
    Wed 02 Jun 2010 09:43:19 AM UTCchabannfStatusIn Progress=>Fixed
    Wed 28 Apr 2010 02:00:23 PM UTCchabannfStatusConfirmed=>In Progress
    Thu 04 Feb 2010 01:05:48 PM UTCchabannfStatusNone=>Confirmed
    Thu 28 Jan 2010 01:38:26 PM UTCchabannfAssigned toNone=>chabannf
    Tue 15 May 2007 07:54:13 AM UTCbortzmeyerAttached File-=>Added config-gems.patch.gz, #12770

    Back to the top

    Powered by Savane 3.1-cleanup1