Hi am getting an error while importing .xlsx files, pls anybody help out resolve this issue,,
{ [Error: Command failed: ] killed: false, code: 1, signal: null }
var excelParser = require('excel-parser');
excelParser.worksheets({
inFile: 'file'
}, function(err, worksheets){
if(err) console.error(err);
console.log(worksheets);
});
Do you have Python "xlrd 0.9.3" library installed? I recieved the same error as you with one file. But after installing lib, it changed to something more clear:
File "/usr/lib/python2.7/zipfile.py", line 763, in _RealGetContents
raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file
] killed: false, code: 1, signal: null }
Probably the file is damaged. After resaving with LibreOffice it's opened well. You may also try to change file extension to zip and unpack it, mine throws an error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With