frictionlessdata / dpm-js

[DEPRECATED] Please use https://datahub.io/docs/features/data-cli
109 stars 18 forks source link

dpm ckan error #26

Closed aborruso closed 10 years ago

aborruso commented 10 years ago

Hi, I'm using 0.7.3 version in windows.

I have create .dpmrc in my home folder and run: dpm ckan datahub --owner_org=aborruso

This is my config file: [ckan.datahub] url = http://datahub.io/ apikey = myapi

And I have: var config = ckanConfigs[ckanUrlOrName] || this.config.ckan[ckanUrlOrName]; ^ TypeError: Cannot read property 'datahub' of undefined at Dpm.ckan (C:\Program Files\Bitnami Node.js Stack\nodejs\node_modules\datapackage\lib\index.js:230:62) at Object. (C:\Program Files\Bitnami Node.js Stack\nodejs\node_modules\datapackage\bin\dpm:80:7) 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) at startup (node.js:119:16) at node.js:906:3

It seems dpm does not read my config file. Am I wrong?

Thank you

rufuspollock commented 10 years ago

That's my guess based on the error message. BTW I can also help debug on #okfn on freenode.

aborruso commented 10 years ago

hi @rgrp now I'm in freenode :)

aborruso commented 10 years ago

Solved. The HOME for windows 7 user is C:\Users\username, and the config file must be without indentation.