leftshifters / excel-parser

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

Undefined on MAC OS X #2

Closed simar88 closed 10 years ago

simar88 commented 10 years ago

Hi everyone! I need you help. When i try to parse an .xls file i always get undefined and this before: { [Error: Command failed: ] killed: false, code: 1, signal: null } I checked if the file exist with fs.existsSync(file) and it return me a success callback. Can you tell me how to fix? Thanks in advance.

sthawali commented 10 years ago

Have you install all the dependencies? if not then install it. You will find that in wiki, https://github.com/vxtindia/excel-parser/wiki

If you already install that successfully then try grunt test and send us its output.

simar88 commented 10 years ago

Ok, I'll try to follow this instructions when I'll have five minutes in the next days. When I'll deploy it on hosting like openshift,nodejitsu..etcetc. I need to do it again on the remote server? I think yes. So i need to understand if the services named before can run the scripts for install the dependecies, it's right? Thank in advance.

simar88 commented 10 years ago

It works! My question now is only related to the deploying of the app on hosting services.

sthawali commented 10 years ago

Yes, You have to repeat installation steps on production server. You can put all this in a single bash script and its common throughout deployments. Meanwhile if I'll get some time, I'll do it and put it in the module directory.

wonderdogone commented 10 years ago

I get this same error still even with grunt and the .json dependencies. However when I run the test like so node worksheet_test.js I don't get any error in console but I also do not receive any output at all?

sthawali commented 10 years ago

@wonderdogone Have you install all python dependencies? Please check the wiki here, https://github.com/vxtindia/excel-parser/wiki

wonderdogone commented 10 years ago

I do have xlrd because I have used python to navigate workbooks/xsl files. However I just realized I did not have argparse and that makes sense why I might be having this issue. Did not know Will install and give it another go..Thanks

raeesaa commented 10 years ago

Even I am getting same error while reading worksheets and I have python already installed.

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

sthawali commented 10 years ago

@raeesaa What version of node and excel-parser you are using.

raeesaa commented 10 years ago

node: v0.10.26 excel-parse: v0.2.2

sthawali commented 10 years ago

@raeesaa It looks like that you have not installed python dependencies. Make sure you have argparse and xlrd installed. https://github.com/leftshifters/excel-parser/wiki/Package-installation

raeesaa commented 10 years ago

It was xlrd that was missing. Now it is working fine. Thanks!