Skip to content
Dane Springmeyer edited this page May 30, 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 like:

  Module._extensions[extension](this, filename);
                               ^
Error: Symbol blend_module not found.

Then it indicates you have either forgotten to use the NODE_MODULE macro or the name for your module in the binding.gyp does not match what is used in the NODE_MODULE.

If you see an error on like:

  Module._extensions[extensions](this,filename)

Error: the specified module cannot be found

This 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