'Unhandled celltype datetime' exception when saving an Excel spreadsheet to csv using to_csv

111 views
Skip to first unread message

John McDowall

unread,
Aug 2, 2011, 12:38:15 PM8/2/11
to ruby-roo
I am getting the following exception whenever I try to save an Excel
spreadsheet as a CSV and it has a column which has a cell type of
datetime:

unhandled celltype datetime
"/usr/local/lib/ruby/gems/1.9.1/gems/roo-1.9.3/lib/roo/
generic_spreadsheet.rb:609:in `block (2 levels) in
write_csv_content'", "/usr/local/lib/ruby/gems/1.9.1/gems/roo-1.9.3/
lib/roo/generic_spreadsheet.rb:605:in `upto'",
"/usr/local/lib/ruby/gems/1.9.1/gems/roo-1.9.3/lib/roo/
generic_spreadsheet.rb:605:in `block in write_csv_content'", "/usr/
local/lib/ruby/gems/1.9.1/gems/roo-1.9.3/lib/roo/
generic_spreadsheet.rb:604:in `upto'",
"/usr/local/lib/ruby/gems/1.9.1/gems/roo-1.9.3/lib/roo/
generic_spreadsheet.rb:604:in `write_csv_content'", "/usr/local/lib/
ruby/gems/1.9.1/gems/roo-1.9.3/lib/roo/generic_spreadsheet.rb:158:in
`to_csv'"

Any ideas?

Thomas Preymesser

unread,
Aug 3, 2011, 3:22:25 PM8/3/11
to ruby...@googlegroups.com
Hello John,


On 2 August 2011 18:38, John McDowall <jo...@minervabuilt.com> wrote:
I am getting the following exception whenever I try to save an Excel
spreadsheet as a CSV and it has a column which has a cell type of
datetime:

 
i have fixed this problem in the 1.9.6 version.

-Thomas

--
Thomas Preymesser
tho...@gmail.com
http://thopre.googlepages.com/
http://thopre.wordpress.com/

Thomas Preymesser

unread,
Aug 3, 2011, 3:47:10 PM8/3/11
to ruby...@googlegroups.com
Hello John,

On 2 August 2011 18:38, John McDowall <jo...@minervabuilt.com> wrote:
I am getting the following exception whenever I try to save an Excel
spreadsheet as a CSV and it has a column which has a cell type of
datetime:

 
Reply all
Reply to author
Forward
0 new messages