mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
160 stars 91 forks source link

Unresolved symbol #249

Open zenchemical opened 2 years ago

zenchemical commented 2 years ago

I'm getting this issue. Python mapnik seems to install OK but importing library failes on some sort of unicode error.

I found other people with the same issue, but I didn't see any clear resolution to it.

Thisi s on mac os 11.6, python 2.7.18

import mapnik Traceback (most recent call last): File "", line 1, in File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mapnik-4.0.0-py2.7-macosx-10.15-x86_64.egg/mapnik/init.py", line 74, in from ._mapnik import * ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mapnik-4.0.0-py2.7-macosx-10.15-x86_64.egg/mapnik/_mapnik.so, 2): Symbol not found: __ZTIN6icu_5713UnicodeStringE Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mapnik-4.0.0-py2.7-macosx-10.15-x86_64.egg/mapnik/_mapnik.so Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mapnik-4.0.0-py2.7-macosx-10.15-x86_64.egg/mapnik/_mapnik.so