pnorman/ogr2osm

ImportError: No module named osgeo

Closed this issue · 2 comments

Recently I have made an update from macOS Catalina to Big Sur. My current GDAL/ogr2ogr 3.1.3 I am trying to convert a Shapefile to OSM with the following code

./ogr2osm.py -t translations/my_data.py -o my_data.osm -f -v --no-upload-false --never-download --never-upload --verbose data_dir/my_data.shp

Which is returning the following error

Traceback (most recent call last):
  File "./ogr2osm.py", line 51, in <module>
    from osgeo import ogr
ImportError: No module named osgeo

This is an issue of your GDAL package, not of this tool.

Exactly. Please have a look where your python bindings for GDAL are installed and try to imagine what will happen when you upgrade python. I am sure you'll find the answer.