rubyXL: Problems during unzipping on xls file parsing
I have a normal xls file i want to parse. So, I’m doing this:
RubyXL::Parser.parse "path/to/file.xls", skip_filename_check: true
And I get the following error :
Zip::ZipError: Zip end of central directory signature not found
from /usr/local/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/zip_central_directory.rb:97:in get_e_o_c_d' from /usr/local/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/zip_central_directory.rb:55:inread_e_o_c_d’
from /usr/local/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/zip_central_directory.rb:85:in read_from_str from /usr/local/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/zip_file.rb:67:inblock in initialize’
from /usr/local/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/zip_file.rb:66:in open' from /usr/local/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/zip_file.rb:66:ininitialize’
from /usr/local/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/zip_file.rb:87:in new' from /usr/local/lib/ruby/gems/1.9.1/gems/rubyzip-0.9.9/lib/zip/zip_file.rb:87:inopen’
from /usr/local/lib/ruby/gems/1.9.1/gems/rubyXL-1.2.10/lib/rubyXL/zip.rb:10:in unzip' from /usr/local/lib/ruby/gems/1.9.1/gems/rubyXL-1.2.10/lib/rubyXL/parser.rb:326:indecompress’
from /usr/local/lib/ruby/gems/1.9.1/gems/rubyXL-1.2.10/lib/rubyXL/parser.rb:47:in `parse’
from (irb):4
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/comma
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.11/lib/rails/comma
Do you have an idea what it might be? The file doesn’t seem corrupt, at least I can open it in microsoft excel.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Reactions: 2
- Comments: 20 (9 by maintainers)
this happens when xlsx file is currently open by an another application(excel…)