# Re: Error using FasterCSV

**URL:** <https://www.ruby-forum.com/t/re-error-using-fastercsv/132037>\
**Category:** Ruby\
**Created:** [March 15, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/re-error-using-fastercsv/132037 "2008-03-15T19:08:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4bbf92/32.png) [@glenn](https://www.ruby-forum.com/u/glenn)\
**Post date:** [March 15, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/re-error-using-fastercsv/132037/1 "2008-03-15T19:08:09Z")

</div>

It did help. That was exactly it – I had named the file fastercvs.rb.  
When I renamed it, it worked fine.

Thanks for your help,

Glenn

----- Original Message ----  
From: James G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: ruby-talk ML [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Saturday, March 15, 2008 10:35:23 AM  
Subject: Re: Error using FasterCSV

On Mar 15, 2008, at 7:29 AM, Glenn wrote:

> Hi,

Hello.

> I am trying to use FasterCSV and am getting an error.

Sorry to hear that. I’ll try to provide some guessesâ€¦

> I installed the fastercsv gem and it appeared to install correctly.
> 
> This is the error that I’m getting:
> 
> …/fastercsv.rb:3: uninitialized constant FasterCSV (NameError)  
> from C:/Program Files/Ruby/lib/ruby/site\_ruby/1.8/rubygems/  
> custom\_require…rb:27:in `gem_original_require' from C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require’  
> from fastercsv.rb:1

That error is a little strange because it is complaining about a lack  
of a FasterCSV constant in the require. The file you required though,  
fastercsv.rb, does not have a FasterCSV constant anywhere in it.  
(It’s a shim that loads some other code.)

My guess is this: you named your own file fastercsv.rb. When you try  
to require the gem, Ruby is finding your file first and it fails to  
load because FasterCSV was never defined. If I’m right, you just need  
to rename your file and it will work.

Hope that helps.

James Edward G. II
