Closed samuelleach closed 8 years ago
By the way, this seems to be related to what happens when I try to make data/images
, which throws an error to do with a package tilelive-vector
that failed to install:
make data/images
mkdir -p data/labels/color
cat data/sample.txt | ./rasterize-labels data/osm/brazil.mbtiles classes/water-roads-buildings.json data/labels/color
module.js:442
throw err;
^
Error: Cannot find module 'tilelive-vector'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/leach/github/skynet-data/rasterize-labels:4:14)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
make: *** [data/labels/color] Error 1
Hi @samuelleach -- sorry for the delay!
On the mapnik installation, it looks like from the node-pre-gyp
message that there aren't prebuilt OSX binaries for Node 6.2. If you're able to easily switch node versions, I had no trouble when using v5.7 -- since there are binaries available for that, the npm install won't try building mapnik locally, and so (hopefully) it'll work.
I believe you're right that the tilelive-vector problem is related to the mapnik install problem.
AH - okay. Thank you very much for the pointer and suggestion. I will try that and report back.
Confirming what you said - node v5.7 works. Thanks!
Hello - I'm interested in the approach you're taking to enable supervised learning via the OSM data and Mapbox/DigitalGlobe data.
I've been trying to run
npm install
on OSX and I seem to be running into some problems relating to mapnik:If I
brew uninstall mapnik
I get the following sorts of errors when doingnpm install
I'm not familiar with installing mapnik. Is there a preferred distribution I should be using?