I've written a python script that runs fine on one computer. but can't import ogr from osgeo on another. Both machines running linux, and have gdal compiled from source and both include with-python=yes in the config.
I have tried both:
import ogr
and
from osgeo import ogr
as I understand it, I shouldn't have to install anything extra besides gdal itself and pyton of course.