when compiled with support python-mapscript bad link library. import mapscript --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-17c56d8326d5> in <module>() ----> 1 import mapscript /usr/local/lib/python2.7/site-packages/mapscript.py in <module>() 26 fp.close() 27 return _mod ---> 28 _mapscript = swig_import_helper() 29 del swig_import_helper 30 else: /usr/local/lib/python2.7/site-packages/mapscript.py in swig_import_helper() 22 if fp is not None: 23 try: ---> 24 _mod = imp.load_module('_mapscript', fp, pathname, description) 25 finally: 26 fp.close() ImportError: Shared object "libmapserver.so.2" not found, required by "_mapscript.so" libmapserver.so.2 is a symbolic link pointing to a nonexistent file [libmapserver.so.7.0.0] I solved manually doing this: # cd /usr/local/lib/ # rm libmapserver.so.2 # ln -s libmapserver.so.7.0.1 libmapserver.so.2
Over to maintainer.
A commit references this bug: Author: wen Date: Thu Mar 3 01:17:52 UTC 2016 New revision: 409994 URL: https://svnweb.freebsd.org/changeset/ports/409994 Log: - Correct link the .so lib file PR: 207623 Submitted by: jjachuf@gmail.com Changes: head/graphics/mapserver/Makefile
The error does not only affect python mapscript, it exists for all options, I fixed it just now, would you update your ports and try again ? Thanks ! wen