leftshifters / excel-parser

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

module can't start on server #11

Closed shaikatzir closed 8 years ago

shaikatzir commented 10 years ago

I used the module on my ubuntu laptop and it worked ok, but when trying to run it on my ubuntu server I get:

TypeError: Object # has no method 'tmpDir' at Object. (/home/ubuntu/neo4jDonde/node_modules/excel-parser/node_modules/temp/lib/temp.js:142:32) at Module._compile (module.js:441:26) at Object..js (module.js:459:10) at Module.load (module.js:348:32) at Function._load (module.js:308:12) at Module.require (module.js:354:17) at require (module.js:370:17) at Object. (/home/ubuntu/neo4jDonde/node_modules/excel-parser/utils.js:6:12) at Module._compile (module.js:441:26) at Object..js (module.js:459:10)

both machines are ubuntu 12.04 64 bit

sthawali commented 10 years ago

@shaikatzir Have you run npm install? Give me detailed log of npm install, also your node version.

shaikatzir commented 10 years ago

verbose cli [ 'node', '/usr/bin/npm', 'install', 'excel-parser' ] info using npm@1.1.4 info using node@v0.6.12 verbose config file /home/ubuntu/.npmrc verbose config file /usr/etc/npmrc verbose config file /usr/share/npm/npmrc verbose caching /home/ubuntu/neo4jDonde/package.json verbose loadDefaults NodeNeo4jTemplate@0.0.1 verbose caching /home/ubuntu/neo4jDonde/node_modules/async/package.json verbose caching /home/ubuntu/neo4jDonde/node_modules/node-dev/package.json verbose loadDefaults node-dev@2.0.2 verbose caching /home/ubuntu/neo4jDonde/node_modules/forever/package.json verbose caching /home/ubuntu/neo4jDonde/node_modules/express/package.json verbose loadDefaults express@3.2.6 verbose caching /home/ubuntu/neo4jDonde/node_modules/jade/package.json verbose loadDefaults jade@0.26.3 verbose caching /home/ubuntu/neo4jDonde/node_modules/neo4j/package.json verbose loadDefaults neo4j@0.2.20 verbose from cache /home/ubuntu/neo4jDonde/package.json verbose readDependencies: using package.json deps verbose cache add [ 'excel-parser', null ] silly cache add: name, spec, args [ undefined, 'excel-parser', [ 'excel-parser', null ] ] verbose parsed url { pathname: 'excel-parser', verbose parsed url path: 'excel-parser', verbose parsed url href: 'excel-parser' } verbose addNamed [ 'excel-parser', '' ] verbose addNamed [ null, '' ] silly name, range, hasData [ 'excel-parser', '', false ] verbose raw, before any munging excel-parser verbose url resolving [ 'https://registry.npmjs.org/', './excel-parser' ] verbose url resolved https://registry.npmjs.org/excel-parser http GET https://registry.npmjs.org/excel-parser ERR! Error: failed to fetch from registry: excel-parser ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12 ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9) ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18) ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22) ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58) ERR! at Request.emit (events.js:88:20) ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12) ERR! at ClientRequest.emit (events.js:67:17) ERR! at HTTPParser.onIncoming (http.js:1261:11) ERR! at HTTPParser.onHeadersComplete (http.js:102:31) ERR! You may report this log at: ERR! http://bugs.debian.org/npm ERR! or use ERR! reportbug --attach /home/ubuntu/neo4jDonde/npm-debug.log npm ERR! ERR! System Linux 3.2.0-40-virtual ERR! command "node" "/usr/bin/npm" "install" "excel-parser" ERR! cwd /home/ubuntu/neo4jDonde

sthawali commented 10 years ago

I can see that you have 0.6.* version of node. Please upgrade to 0.10.* (latest stable version)

On Mon, Jan 20, 2014 at 12:52 PM, shaikatzir notifications@github.comwrote:

verbose cli [ 'node', '/usr/bin/npm', 'install', 'excel-parser' ] info using npm@1.1.4 info using node@v0.6.12 verbose config file /home/ubuntu/.npmrc verbose config file /usr/etc/npmrc verbose config file /usr/share/npm/npmrc verbose caching /home/ubuntu/neo4jDonde/package.json verbose loadDefaults NodeNeo4jTemplate@0.0.1 verbose caching /home/ubuntu/neo4jDonde/node_modules/async/package.json verbose caching /home/ubuntu/neo4jDonde/node_modules/node-dev/package.json verbose loadDefaults node-dev@2.0.2 verbose caching /home/ubuntu/neo4jDonde/node_modules/forever/package.json verbose caching /home/ubuntu/neo4jDonde/node_modules/express/package.json verbose loadDefaults express@3.2.6 verbose caching /home/ubuntu/neo4jDonde/node_modules/jade/package.json verbose loadDefaults jade@0.26.3 verbose caching /home/ubuntu/neo4jDonde/node_modules/neo4j/package.json verbose loadDefaults neo4j@0.2.20 verbose from cache /home/ubuntu/neo4jDonde/package.json verbose readDependencies: using package.json deps verbose cache add [ 'excel-parser', null ] silly cache add: name, spec, args [ undefined, 'excel-parser', [ 'excel-parser', null ] ] verbose parsed url { pathname: 'excel-parser', verbose parsed url path: 'excel-parser', verbose parsed url href: 'excel-parser' } verbose addNamed [ 'excel-parser', '' ] verbose addNamed [ null, '' ] silly name, range, hasData [ 'excel-parser', '', false ] verbose raw, before any munging excel-parser verbose url resolving [ 'https://registry.npmjs.org/', './excel-parser' ] verbose url resolved https://registry.npmjs.org/excel-parser http GET https://registry.npmjs.org/excel-parser ERR! Error: failed to fetch from registry: excel-parser ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12 ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9) ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18) ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22) ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58) ERR! at Request.emit (events.js:88:20) ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12) ERR! at ClientRequest.emit (events.js:67:17) ERR! at HTTPParser.onIncoming (http.js:1261:11) ERR! at HTTPParser.onHeadersComplete (http.js:102:31) ERR! You may report this log at: ERR! http://bugs.debian.org/npm ERR! or use ERR! reportbug --attach /home/ubuntu/neo4jDonde/npm-debug.log npm ERR! ERR! System Linux 3.2.0-40-virtual ERR! command "node" "/usr/bin/npm" "install" "excel-parser" ERR! cwd /home/ubuntu/neo4jDonde

— Reply to this email directly or view it on GitHubhttps://github.com/vxtindia/excel-parser/issues/11#issuecomment-32738614 .

Regards, ~ Shekhar Thawali

shaikatzir commented 10 years ago

Hi,
I upgraded node. Now the module can be initialized, but when trying to parse, I get the following error : (no other errors in the log..)

Error: Command failed: Error: Command failed: at ChildProcess.exithandler (child_process.js:637:15) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:735:16) at Process.ChildProcess._handle.onexit (child_process.js:802:5)

sthawali commented 10 years ago

Make sure you are installing python and other packages listed here, https://github.com/vxtindia/excel-parser/wiki/Package-installation

sthawali commented 8 years ago

assuming its fixed @shaikatzir