Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install on OSX - installation ok, but running throws - Symbol not found: __ZN6google8protobuf11MessageLite15ParseFromStringERKSs #14

Open
trebor74hr opened this issue Oct 9, 2015 · 2 comments

Comments

@trebor74hr
Copy link

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.

@Gijs-Koot
Copy link

I had the same problem, but this solution didn't fix it for me. I was actually using a conda environment. After many tries I created a new virtualenv, not using conda, that worked for a reason unknown to me. Both were with python.2.7.10.

@unvaiso
Copy link

unvaiso commented Jun 23, 2017

Try adding CC=gcc-5 CXX=g++-5 before pip install imposm.parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants