Ruport::DataSet unitialized constant?

Discussion in 'Ruby' started by Michael Linfield, Aug 15, 2007.

  1. even runnin the simplest program such as this -

    require "rubygems"
    require "ruport"
    require "ruport/util"

    stuff = Ruport::DataSet.load("filename.csv")

    ###

    gives me the error of uninitialized constant Ruport::DataSet
    (NameError)

    any idea why it cant find it even though ive doin all the -- gem install
    ruport -y -- and what not?

    Thanks :D
    --
    Posted via http://www.ruby-forum.com/.
     
    Michael Linfield, Aug 15, 2007
    #1
    1. Advertising

  2. Michael Linfield wrote:
    > even runnin the simplest program such as this -
    >
    > require "rubygems"
    > require "ruport"
    > require "ruport/util"
    >
    > stuff = Ruport::DataSet.load("filename.csv")
    >
    > ###
    >
    > gives me the error of uninitialized constant Ruport::DataSet
    > (NameError)
    >
    > any idea why it cant find it even though ive doin all the -- gem install
    > ruport -y -- and what not?


    Well - Ruport::DataSet does not exist - take a look at
    http://api.rubyreports.org/classes/Ruport/Data/Table/FromCSV.html

    You may want to use

    stuff = Ruport::Data::Table.load("filename.csv")

    HTH

    Stefan
     
    Stefan Mahlitz, Aug 15, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Darrell Grainger

    Re: Unitialized Memory Read In sscanf()

    Darrell Grainger, Jun 24, 2003, in forum: C Programming
    Replies:
    1
    Views:
    837
    Alan Balmer
    Jun 24, 2003
  2. Eric Sosman

    Re: Unitialized Memory Read In sscanf()

    Eric Sosman, Jun 24, 2003, in forum: C Programming
    Replies:
    0
    Views:
    861
    Eric Sosman
    Jun 24, 2003
  3. Adam Monsen
    Replies:
    3
    Views:
    253
    =?iso-8859-1?Q?Fran=E7ois?= Pinard
    Sep 9, 2005
  4. Greg

    Unitialized pointers?

    Greg, Oct 11, 2004, in forum: C Programming
    Replies:
    5
    Views:
    350
  5. Samuel Sternhagen
    Replies:
    3
    Views:
    220
    Jonas B.
    Jan 18, 2011
Loading...

Share This Page