G
Glenn
[Note: parts of this message were removed to make it a legal post.]
Hi,
I am trying to use FasterCSV and am getting an error.
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
Here's the code:
require 'rubygems'
require 'fastercsv'
FasterCSV.foreach("data.csv") do |person|
puts person.inspect
end
It seems pretty simple -- it's just some code that I got out of a book -- so I'm surprised that I'm getting that error. It seems to me that the error might indicate that the gem didn't actually install properly. If anyone has any insight into this, I'd appreciate it.
Thanks,
Glenn
Hi,
I am trying to use FasterCSV and am getting an error.
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
Here's the code:
require 'rubygems'
require 'fastercsv'
FasterCSV.foreach("data.csv") do |person|
puts person.inspect
end
It seems pretty simple -- it's just some code that I got out of a book -- so I'm surprised that I'm getting that error. It seems to me that the error might indicate that the gem didn't actually install properly. If anyone has any insight into this, I'd appreciate it.
Thanks,
Glenn