[GH-ISSUE #12] Library raises a misleading error when the file isn't writeable #10

Closed
opened 2026-05-05 11:24:28 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @jmcnamara on GitHub (Oct 19, 2015).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/12

Originally assigned to: @jmcnamara on GitHub.

The following misleading errors are usually generated when the output file or directory isn't writeable:

cd libxlsxwriter
make examples
./examples/hello
# Creates hello_world.xlsx

chmod -w hello_world.xlsx
./examples/hello

[ERROR][packager.c:62]: Error opening zip file for xlsx
[ERROR][workbook.c:1108]: Memory allocation failed.
Originally created by @jmcnamara on GitHub (Oct 19, 2015). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/12 Originally assigned to: @jmcnamara on GitHub. The following misleading errors are usually generated when the output file or directory isn't writeable: ``` cd libxlsxwriter make examples ./examples/hello # Creates hello_world.xlsx chmod -w hello_world.xlsx ./examples/hello [ERROR][packager.c:62]: Error opening zip file for xlsx [ERROR][workbook.c:1108]: Memory allocation failed. ```
gitea-mirror 2026-05-05 11:24:28 -06:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#10
No description provided.