Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in spreadsheet export on AlmaLinux #64

Open
Tekki opened this issue Apr 24, 2024 · 3 comments
Open

Error in spreadsheet export on AlmaLinux #64

Tekki opened this issue Apr 24, 2024 · 3 comments
Assignees

Comments

@Tekki
Copy link
Owner

Tekki commented Apr 24, 2024

In #61 (comment) @sse450 reports the following error when he tries to create a spreadsheet on AlmaLinux 9:

Argument "#8EA9DB" isn't numeric in numeric ne (!=) at /usr/share/perl5/vendor_perl/Excel/Writer/XLSX/Package/Styles.pm line 797. 
Argument "#4472C4" isn't numeric in numeric ne (!=) at /usr/share/perl5/vendor_perl/Excel/Writer/XLSX/Package/Styles.pm line 797.
Argument "#4472C4" isn't numeric in numeric ne (!=) at /usr/share/perl5/vendor_perl/Excel/Writer/XLSX/Package/Styles.pm line 797. 
@Tekki
Copy link
Owner Author

Tekki commented Apr 28, 2024

@sse450: I'm able to reproduce this error on AlmaLinux.

@Tekki
Copy link
Owner Author

Tekki commented Apr 28, 2024

This error only occurs on AlmaLinux, only when the border color is set (not the text color) and only when the module is used in a web application. I'm not able to create a standalone script that shows the same behavior.

For the moment the temporary solution is to disable warning in Styles.pm with

sed -i -e 's/use warnings;/# use warnings;/' /usr/share/perl5/vendor_perl/Excel/Writer/XLSX/Package/Styles.pm 

@sse450: Please try this and give feedback.

@sse450
Copy link

sse450 commented Apr 29, 2024

Tried. Your solution works perfectly. Downloads the "xlsx" sheet.

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants