mapbox / robosat

Semantic segmentation on aerial and satellite imagery. Extracts features such as: buildings, parking lots, roads, water, clouds
MIT License
2.02k stars 383 forks source link

Installation problem with the boost_python lib. #85

Closed DragonEmperorG closed 6 years ago

DragonEmperorG commented 6 years ago

After I finished the Installation instruction on Ubuntu 16.04, I tried to test the tool working state: ./rs --help the tool returned the Import Error: Traceback (most recent call last): File "/home/ql/anaconda3/envs/pytorch/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/home/ql/anaconda3/envs/pytorch/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/ql/GitHubRepo/robosat/robosat/tools/__main__.py", line 5, in <module> from robosat.tools import ( File "/home/ql/GitHubRepo/robosat/robosat/tools/extract.py", line 3, in <module> from robosat.osm.parking import ParkingHandler File "/home/ql/GitHubRepo/robosat/robosat/osm/parking.py", line 3, in <module> import osmium File "/home/ql/anaconda3/envs/pytorch/lib/python3.6/site-packages/osmium/__init__.py", line 1, in <module> from osmium._osmium import * ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0: undefined symbol: PyClass_Type I thought there might be something wrong with the Boost_Python lib, how could I figure it out?

daniel-j-h commented 6 years ago

You are running into https://github.com/osmcode/pyosmium/issues/52. The ticket has a workaround at the bottom. You have Python3.6 installed (probably through a ppa) but the Ubuntu 16.04 system comes with Boost.Python for Python3.5.

DragonEmperorG commented 6 years ago

Thanks for your quick reply. I used conda to create a new Environment with python=3.5. After I replayed all the installation operations, Robosat works fine. Sorry for the noise. Feel free to close.

daniel-j-h commented 6 years ago

:+1: hopefully at some point we will just have self-contained Docker images.

Have fun with :robot: :framed_picture:!