Open testvgs7 opened 10 years ago
@testvgs7 Have you install all dependencies? https://github.com/leftshifters/excel-parser/wiki/Python-library-installation-steps
@sthawali , Yes. i installed all dependencies.
@testvgs7 Its hard to understand anything with your error message. can you add your system information, python version, actual code you user to parse file.
Also, why file
is quoted. If its a variable then the way you represent it is wrong.
@sthawali , hi am using windows 8, and python version is 2.7.3. and the above code am using , file is a variable, file denotes the exact file path to read. and its not quoted in my coding.
+1 I'm getting the exact same error, dunno what to do. I have Python 2.7.8, I'm calling:
excel.parse({ inFile: file, worksheet: 1, skipEmpty: true }, function (err, data) { if (err) { console.log(err); } });
And i'm constantly getting this error: { [Error: Command failed: ] killed: false, code: 1, signal: null }
I'm using a very simple Excel file I created in Excel 2013. Running Windows 8.1
Please help!
Is it possible you have a Python 3.x.x directory in your path as well? I had installed Python 2.7.x, but because Python 3.x.x was earlier in my path variable, excel-parser was actually calling Python 3.x.x, and giving me this error.
@nassan You need to change the path variable. follow this, https://docs.python.org/2/using/windows.html#excursus-setting-environment-variables
Right, I did remove the python 3.x.x from the path variable, and it worked fine. :) I thought, perhaps someone else might have stumbled in the same way.
Thank you for your prompt reply.
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); });