imposm2
imposm2 copied to clipboard
Installed ok, but error when running on OS X - Symbol not found: __ZNSs4_Rep20_S_empty_rep_storageE
Everything installed ok, but when I try running imposm I get the following error:
» imposm --help
Enabling Shapely speedups.
Traceback (most recent call last):
File "/usr/local/bin/imposm", line 9, in <module>
load_entry_point('imposm==2.5.0', 'console_scripts', 'imposm')()
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 353, in load_entry_point
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2321, in load_entry_point
File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 2048, in load
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/app.py", line 44, in <module>
from imposm.cache import OSMCache
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/cache/__init__.py", line 1, in <module>
from . osm import OSMCache
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/cache/osm.py", line 19, in <module>
from . tc import DeltaCoordsDB, CoordDB, NodeDB, WayDB, InsertedWayDB, RelationDB
File "tc.pyx", line 312, in init imposm.cache.tc (imposm/cache/tc.c:9434)
ImportError: dlopen(/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/cache/internal.so, 2): Symbol not found: __ZNSs4_Rep20_S_empty_rep_storageE
Referenced from: /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/cache/internal.so
Expected in: flat namespace
in /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/cache/internal.so
I'm on OSX 10.9.2 using python 2.7.6 installed via brew. The other pip packages I have installed are:
» pip list
Cython (0.20.1)
distribute (0.7.3)
GDAL (1.10.0)
imposm (2.5.0)
imposm.parser (1.0.5)
pip (1.5.4)
psycopg2 (2.5.2)
Rtree (0.7.0)
setuptools (2.2)
Shapely (1.3.0)
virtualenv (1.11.4)
wsgiref (0.1.2)
Any suggestions? (other than using imposm3, which I do have running ok!) A similar ImportError Symbol not found: __ZNSs4_Rep20_S_empty_rep_storageE was fixed for this python library, but I don't know how it would apply in this case. Thanks.
similar thing here:
Enabling Shapely speedups.
Traceback (most recent call last):
File "/usr/local/bin/imposm", line 9, in <module>
load_entry_point('imposm==2.5.0', 'console_scripts', 'imposm')()
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/app.py", line 44, in <module>
from imposm.cache import OSMCache
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/cache/__init__.py", line 1, in <module>
from . osm import OSMCache
File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/cache/osm.py", line 19, in <module>
from . tc import DeltaCoordsDB, CoordDB, NodeDB, WayDB, InsertedWayDB, RelationDB
File "tc.pyx", line 312, in init imposm.cache.tc (imposm/cache/tc.c:8254)
ImportError: dlopen(/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/cache/internal.so, 2): Symbol not found: __ZN6google8protobuf11MessageLite15ParseFromStringERKSs
Referenced from: /usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/cache/internal.so
Expected in: flat namespace
in /usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imposm/cache/internal.so
I'm encountering the same issue on OS X Mavericks, using a virtualenv and pyenv.
Enabling Shapely speedups.
Traceback (most recent call last):
File "/Users/xxxxx/.pyenv/versions/venv/bin/imposm", line 9, in <module>
load_entry_point('imposm==2.5.0', 'console_scripts', 'imposm')()
File "/Users/xxxxx/.pyenv/versions/venv/lib/python2.7/site-packages/pkg_resources.py", line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Users/xxxxx/.pyenv/versions/venv/lib/python2.7/site-packages/pkg_resources.py", line 2431, in load_entry_point
return ep.load()
File "/Users/xxxxx/.pyenv/versions/venv/lib/python2.7/site-packages/pkg_resources.py", line 2147, in load
['__name__'])
File "/Users/xxxxx/.pyenv/versions/venv/lib/python2.7/site-packages/imposm/app.py", line 44, in <module>
from imposm.cache import OSMCache
File "/Users/xxxxx/.pyenv/versions/venv/lib/python2.7/site-packages/imposm/cache/__init__.py", line 1, in <module>
from . osm import OSMCache
File "/Users/xxxxx/.pyenv/versions/venv/lib/python2.7/site-packages/imposm/cache/osm.py", line 19, in <module>
from . tc import DeltaCoordsDB, CoordDB, NodeDB, WayDB, InsertedWayDB, RelationDB
File "tc.pyx", line 312, in init imposm.cache.tc (imposm/cache/tc.c:8254)
ImportError: dlopen(/Users/xxxxx/.pyenv/versions/venv/lib/python2.7/site-packages/imposm/cache/internal.so, 2): Symbol not found: __ZN6google8protobuf11MessageLite15ParseFromStringERKSs
Referenced from: /Users/xxxxx/.pyenv/versions/venv/lib/python2.7/site-packages/imposm/cache/internal.so
Expected in: dynamic lookup
Did any of you guys ever solve this?
I just did a quick test on 10.10 with tokyo-cabinet (1.4.48), protbuf (2.6.0) and python (2.7.8) installed with homebrew and a fresh virtualenv with:
Shapely==1.4.4
imposm==2.5.0
imposm.parser==1.0.6
psycopg2==2.5.4
No issues.
I had the same problem. Log pretty much identical to @timiyay actually. Would show with Shapely < or > 1.3 (impose has issues with Shapely >= 1.3).
I remember having issues with mapnik due to pyenv (pyenv does not build shared libraries by default, you have to tell it to do so when building python via pyenv), so I made a virtualenv based on the home-brew python and it works fine now (simple pyenv virtualenv system imposmenv
). This could be an issue with pyenv/python built from source and shared libraries.