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

[ERRO] open /tmp/excelize-3074771143: no such file or directory #251

Closed
tchiavegatti opened this issue Sep 15, 2023 · 5 comments
Closed

Comments

@tchiavegatti
Copy link

I got an error when I tried to convert an XLSX file to CSV:

csvtk xlsx2csv excelfile.xlsx -n Sheet1 > output.csv
[ERRO] open /tmp/excelize-969081702: no such file or directory

The number after /tmp/excelizes changes, but I always get the same error. I tried to run it on Linux (WSL2) and on Windows, but the result is the same:

# Windows - Powershell
Get-ChildItem $datadir -File -Filter '*.xlsx' | ForEach-Object {.\csvtk.exe xlsx2csv $_.FullName -n "Sheet1"}
[ERRO] open C:\Users\username\AppData\Local\Temp\excelize-877759494: The system cannot find the file specified.
@shenwei356
Copy link
Owner

That's weird. Which version are you using? Try the latest version, please. I've confirmed it works as expected on Windows 10.

csvtk_linux_amd64.tar.gz
csvtk_windows_amd64.exe.tar.gz

@tchiavegatti
Copy link
Author

csvtk version
csvtk v0.27.2

@shenwei356
Copy link
Owner

shenwei356 commented Sep 15, 2023

Is the .xlsx file large? It looks like the excelize packages do use tmp files, but when it uses is not clear.

Update:

qax-os/excelize#1146

@tchiavegatti
Copy link
Author

Around 30MB, 215,000 lines.

@shenwei356
Copy link
Owner

It's fixed.

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