datopian / datapipes

Data Pipes for CSV
https://datapipes.okfnlabs.org/
MIT License
117 stars 16 forks source link

"object is not a function" error on command line #117

Closed gbirke closed 6 years ago

gbirke commented 10 years ago

When I try to run any datapipes command from the command line, I get the following error:

/usr/local/lib/node_modules/datapipes/lib/operators.js:61
    return csv()
           ^
TypeError: object is not a function
    at new operators.incsv (/usr/local/lib/node_modules/datapipes/lib/operators.js:61:12)
    at /usr/local/lib/node_modules/datapipes/lib/transform.js:13:17
    at Function._.map._.collect (/usr/local/lib/node_modules/datapipes/node_modules/underscore/underscore.js:124:24)
    at Object.exports.pipeline (/usr/local/lib/node_modules/datapipes/lib/transform.js:11:24)
    at Object.<anonymous> (/usr/local/lib/node_modules/datapipes/bin/datapipes:97:36)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

I' have installed datapipes 0.2.0 through "npm install -g datapipes".

rufuspollock commented 10 years ago

Thanks for the report @gbirke and we'll look into this. May be an out of date dependency!