weshatheleopard / rubyXL

Ruby lib for reading/writing/modifying .xlsx and .xlsm files
MIT License
1.28k stars 255 forks source link

Issue parsing xlsm file #374

Open amurlikowski opened 4 years ago

amurlikowski commented 4 years ago

When i try to parse the file (attachment) I'm getting following error:

Traceback (most recent call last): 31: from C:/Users/adamur/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/verify.rb:7:in <main>' 30: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/parser.rb:7:inparse' 29: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyzip-2.3.0/lib/zip/file.rb:125:in open' 28: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/parser.rb:8:inblock in parse' 27: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/root.rb:66:in parse_zip_file' 26: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/relationships.rb:182:inload_relationships' 25: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/relationships.rb:76:in load_related_files' 24: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/relationships.rb:76:ineach' 23: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/relationships.rb:95:in block in load_related_files' 22: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/relationships.rb:182:inload_relationships' 21: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/relationships.rb:76:in load_related_files' 20: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/relationships.rb:76:ineach' 19: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/relationships.rb:94:in block in load_related_files' 18: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/ooxml_object.rb:447:inparse_file' 17: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyzip-2.3.0/lib/zip/entry.rb:540:in get_input_stream' 16: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/ooxml_object.rb:447:inblock in parse_file' 15: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/worksheet.rb:738:in parse' 14: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/ooxml_object.rb:144:inparse' 13: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.0.rc2-x64-mingw32/lib/nokogiri/xml/node_set.rb:238:in each' 12: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.0.rc2-x64-mingw32/lib/nokogiri/xml/node_set.rb:238:inupto' 11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.0.rc2-x64-mingw32/lib/nokogiri/xml/node_set.rb:239:in block in each' 10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/ooxml_object.rb:158:inblock in parse' 9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/ooxml_object.rb:144:in parse' 8: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.0.rc2-x64-mingw32/lib/nokogiri/xml/node_set.rb:238:ineach' 7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.0.rc2-x64-mingw32/lib/nokogiri/xml/node_set.rb:238:in upto' 6: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.0.rc2-x64-mingw32/lib/nokogiri/xml/node_set.rb:239:inblock in each' 5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/ooxml_object.rb:158:in block in parse' 4: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rubyXL-3.4.14/lib/rubyXL/objects/ooxml_object.rb:144:inparse' 3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.0.rc2-x64-mingw32/lib/nokogiri/xml/node_set.rb:238:in each' 2: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.0.rc2-x64-mingw32/lib/nokogiri/xml/node_set.rb:238:inupto' 1: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.0.rc2-x64-mingw32/lib/nokogiri/xml/node_set.rb:239:in `block in each' File.zip