Closed yohanboniface closed 2 years ago
Try this:
$ python
>>> import ctypes
>>> ctypes.CDLL('/home/ybon/Code/js/node-mapnik/lib/binding/lib/mapnik/input/postgis.input')
I pulled that from https://github.com/mapnik/node-mapnik/wiki/Troubleshooting#the-specified-module-cannot-be-found. It might need updated to latest python in case something changed with python 3. Either way, the idea here is that python has better error reporting and should show what is actually wrong with the dynamic library/loadable module on your system. My hunch is the same as yours: updating some system package impacted the plugin. When compiling the node-mapnik libraries we made every effort to statically link as many libraries as possible, so that there would be no breakages if the system changed. But the postgis plugin depends on SSL, which requires openssl, which was too much to statically link.
Thanks Dane for the tip!
In [2]: ctypes.CDLL('/home/ybon/Code/js/node-mapnik/lib/binding/lib/mapnik/input/postgis.input')
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 ctypes.CDLL('/home/ybon/Code/js/node-mapnik/lib/binding/lib/mapnik/input/postgis.input')
File /usr/lib/python3.10/ctypes/__init__.py:374, in CDLL.__init__(self, name, mode, handle, use_errno, use_last_error, winmode)
371 self._FuncPtr = _FuncPtr
373 if handle is None:
--> 374 self._handle = _dlopen(self._name, mode)
375 else:
376 self._handle = handle
OSError: libcrypt.so.1: cannot open shared object file: No such file or directory
So I installed libxcrypt-compat
(I'm on arch), and it worked again, yay :)
One more beer I own you, ha ha! :)
Hi there,
While running kosmtik, I got this error:
There is a
postgis.input
in the directory printed in the error message:So to try to understand what's going on, I've tried to run
node-mapnik
tests, and here is what I see on the console:I did not change anything as far as I can remember on my kosmtik install since last time I used it (successfully), but time has passed, so I may have updated some system package that breaks something for mapnik, but with those logs I don't how where to investigate. I then tried to reinstall kosmtik from scratch, but I end up with the same error.
Any clue how to debug this ?
Thanks a log in advance :)
Yohan