martijn / xsv

High performance, lightweight .xlsx parser for Ruby that provides nothing a CSV parser wouldn't
https://storck.io/posts/announcing-xsv-1-0-0/
MIT License
194 stars 20 forks source link

#<NoMethodError: undefined method `get_input_stream' for nil:NilClass> #15

Closed durcak closed 4 years ago

durcak commented 4 years ago

Hi, I tried to parse this xlsx file, but I am getting this error:

x = Xsv::Workbook.open(file)

NoMethodError: undefined method get_input_stream' for nil:NilClass from /Users/tomasdurcak/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/xsv-0.3.14/lib/xsv/workbook.rb:78:infetch_shared_strings' Caused by NoMethodError: undefined method get_input_stream' for nil:NilClass from /Users/tomasdurcak/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/xsv-0.3.14/lib/xsv/workbook.rb:78:infetch_shared_strings' Caused by CSV::MalformedCSVError: Illegal quoting in line 2. from /Users/tomasdurcak/.rbenv/versions/2.6.6/lib/ruby/2.6.0/csv/parser.rb:879:in `parse_quotable_robust'

martijn commented 4 years ago

Thanks for reporting. Could you maybe upload the file somewhere that doesn't require me to register? Feel free to send it to the e-mail address in my profile.

martijn commented 4 years ago

Released 0.3.15 with a fix.