leftshifters / excel-parser

nodejs wrapper for parsing spreadsheet.
MIT License
72 stars 70 forks source link

{ [Error: Command failed: ] killed: false, code: 1, signal: null } #20

Open testvgs7 opened 10 years ago

testvgs7 commented 10 years ago

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); });

sthawali commented 10 years ago

@testvgs7 Have you install all dependencies? https://github.com/leftshifters/excel-parser/wiki/Python-library-installation-steps

testvgs7 commented 10 years ago

@sthawali , Yes. i installed all dependencies.

sthawali commented 10 years ago

@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.

testvgs7 commented 10 years ago

@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.

vitaly-t commented 9 years ago

+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!

nassan commented 9 years ago

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.

sthawali commented 9 years ago

@nassan You need to change the path variable. follow this, https://docs.python.org/2/using/windows.html#excursus-setting-environment-variables

nassan commented 9 years ago

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.