Hi,
I installed on OSX like this:
brew install protobuf
pip install imposm.parser
Everything went fine, but when I tested library, e.g.:
python -c"from imposm.parser.pbf import OSMPBF"
it reported error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: dlopen(/Users/rlujo/env/invh/busni/pybiz/lib/python2.7/site-packages/imposm/parser/pbf/OSMPBF.so,
2): Symbol not found: __ZN6google8protobuf11MessageLite15ParseFromStringERKSs
Referenced from: /Users/rlujo/env/invh/busni/pybiz/lib/python2.7/site-packages/imposm/parser/pbf/OSMPBF.so
Expected in: flat namespace
in /Users/rlujo/env/invh/busni/pybiz/lib/python2.7/site-packages/imposm/parser/pbf/OSMPBF.so
I have spent some time on investigation, it seems that there is some problem in linking osmpbf.so and libprotobuf.dylib, the signature of the method ZN6google8protobuf11MessageLite15ParseFromStringERK... is mismatched.
Solution in my case was upgrading XCode from 4.8 to 6.2 and reinstalling protobuf and imposm.parser:
pip uninstall imposm.parser
brew uninstall protobuf
brew install protobuf
pip install imposm.parser
Hope this will help someone.