From: Glenn Date: 2008-03-16T03:07:27+09:00 Subject: Re: Error using FasterCSV --0-1288704766-1205604300=:2996 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable It did help. That was exactly it -- I had named the file fastercvs.rb. Wh= en I renamed it, it worked fine.=0A=0AThanks for your help,=0A=0AGlenn=0A= =0A----- Original Message ----=0AFrom: James Gray =0ATo: ruby-talk ML =0ASent: Saturday, March 15,= 2008 10:35:23 AM=0ASubject: Re: Error using FasterCSV=0A=0AOn Mar 15, 2008= , at 7:29 AM, Glenn wrote:=0A=0A> Hi,=0A=0AHello.=0A=0A> I am trying to use= FasterCSV and am getting an error.=0A=0ASorry to hear that. I'll try to p= rovide some guesses=85=0A=0A> I installed the fastercsv gem and it appeared= to install correctly.=0A>=0A> This is the error that I'm getting:=0A>=0A> = .../fastercsv.rb:3: uninitialized constant FasterCSV (NameError)=0A> from= C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/ =0A> custom_require= ..rb:27:in `gem_original_require'=0A> from C:/Program Files/Ruby/lib/ruby= /site_ruby/1.8/rubygems/ =0A> custom_require.rb:27:in `require'=0A> from= fastercsv.rb:1=0A=0AThat error is a little strange because it is complaini= ng about a lack =0Aof a FasterCSV constant in the require. The file you r= equired though, =0Afastercsv.rb, does not have a FasterCSV constant anywhe= re in it. =0A(It's a shim that loads some other code.)=0A=0AMy guess is t= his: you named your own file fastercsv.rb. When you try =0Ato require th= e gem, Ruby is finding your file first and it fails to =0Aload because Fas= terCSV was never defined. If I'm right, you just need =0Ato rename your f= ile and it will work.=0A=0AHope that helps.=0A=0AJames Edward Gray II=0A=0A= =0A=0A --0-1288704766-1205604300=:2996--