Skip to content
Dane Springmeyer edited this page May 24, 2013 · 7 revisions

Troubleshooting

If you see an error like Error: cannot find module 'mapnik' it means that you need to ensure that the mapnik folder is in your node_modules or otherwise on you NODE_PATH.

If you see an error on Windows like Module._extensions[extensions](this,filename); Error: the specified module cannot be found is likely means that the module was found but that it cannot be loaded because it is unable to find other dynamic libraries it depends upon. A nice way to figure out which module is missing is to use python's ctypes module to import the node module like:

$ python
>>> import ctypes
>>> ctypes.CDLL('./lib/_mapnik.node')

This should prompt and error to pop up in a new graphical window that presents like library name that is missing like:

Clone this wiki locally