histograph / data

http://histograph.io
MIT License
0 stars 4 forks source link

Data tool fails on something (`AssertionError: missing path`) #25

Closed wires closed 8 years ago

wires commented 8 years ago

this is the config (graphmalizer branch)

histograph@vps662:~/config$ node test.js --config ../api-erfgeo-nl.config.yml
{
  "api": {
    "host": "localhost",
    "port": 3000,
    "baseUrl": "https://api.erfgeo.nl/",
    "dataDir": "/home/histograph/uploads",
    "admin": {
      "name": "histograph",
      "password": "***********"
    }
  },
  "redis": {
    "host": "localhost",
    "port": 6379,
    "queue": "histograph"
  },
  "elasticsearch": {
    "host": "localhost",
    "port": 9200
  },
  "neo4j": {
    "host": "localhost",
    "port": 7474
  },
  "core": {
    "batchSize": 100,
    "batchTimeout": 250
  },
  "viewer": {
    "language": "en"
  },
  "data": {
    "geonames": {
      "countries": [
        "NL"
      ],
      "extraUris": "./extra-uris.json"
    },
    "tgn": {
      "parents": [
        "tgn:7016845"
      ]
    },
    "bag": {
      "db": {
        "host": "localhost",
        "port": 5432,
        "user": "postgres",
        "password": "postgres",
        "database": "bag"
      }
    }
  },
  "import": {
    "dirs": [
      "/home/histograph/data"
    ]
  },
  "logo": [
    "   ●───────●    ",
    "  /║       ║\\  ",
    " / ║       ║ \\ ",
    "●  ║═══════║  ● ",
    " \\ ║       ║ / ",
    "  \\║       ║/  ",
    "   ●───────●    "
  ]
}

this is the error (graphmalizer branch)

histograph@vps662:~/data$ node index.js --config ../api-erfgeo-nl.config.yml
Processing source geonames:
  Executing step download...
    Done!
  Executing step convert...

assert.js:86
  throw new assert.AssertionError({
        ^
AssertionError: missing path
    at Module.require (module.js:363:3)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/histograph/data/pits-and-relations.js:3:14)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.exports.convert (/home/histograph/data/geonames/geonames.js:223:22)