You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope this message finds you well. Firstly, I'd like to express my gratitude for the efforts put into maintaining the SimpleXlsxReader gem – it's been a valuable tool for many.
I've come across an issue while utilizing the gem that I believe needs your attention. The problem arises when I attempt to run the following code snippet:
doc = SimpleXlsxReader.open("tmp/filename.xlsx")
This line of code triggers an error message: RuntimeError: Zip::ZipFile.open_buffer expects an argument of class String or IO. Found: File. After investigating the source of the issue, it seems that the root cause lies within the loader.rb file, precisely at this line.
My solution to this problem was to modify the line SimpleXlsxReader::Zip.open_buffer(string_or_io) to SimpleXlsxReader::Zip.open(string_or_io). This change effectively resolves the issue and allows the code to run smoothly.
I believe this small tweak could prevent similar errors for other users as well. I wanted to bring this to your attention so that it can be reviewed and addressed appropriately.
The text was updated successfully, but these errors were encountered:
I hope this message finds you well. Firstly, I'd like to express my gratitude for the efforts put into maintaining the SimpleXlsxReader gem – it's been a valuable tool for many.
I've come across an issue while utilizing the gem that I believe needs your attention. The problem arises when I attempt to run the following code snippet:
This line of code triggers an error message:
RuntimeError: Zip::ZipFile.open_buffer expects an argument of class String or IO. Found: File
. After investigating the source of the issue, it seems that the root cause lies within theloader.rb
file, precisely at this line.My solution to this problem was to modify the line
SimpleXlsxReader::Zip.open_buffer(string_or_io)
toSimpleXlsxReader::Zip.open(string_or_io)
. This change effectively resolves the issue and allows the code to run smoothly.I believe this small tweak could prevent similar errors for other users as well. I wanted to bring this to your attention so that it can be reviewed and addressed appropriately.
The text was updated successfully, but these errors were encountered: