Can't import GDAL into Python (2.5 or 2.6)

Vincent Habchi vince at
Fri Aug 20 02:37:07 PDT 2010

Le 20 août 2010 à 10:39, JP Glutting a écrit :

> I haven't used GDAL from Python before, so I may be failing to understand something here, but I can't use "import gdal" from either Python 2.5 or Python 2.6.
> I have GDAL installed ("sudo port install gdal +python25 +python26 +sqlite3") and it is listed as active. i had gdal 1.6.2_3 installed before, and I re-installed with the extra options, but I have the same problem either way.
> When I try "improt gdal" (or "import ogr") or "from osgeo import gdal" [just in case, for no particular reason], I get an ImportError.

That's all you get? I mean, no futher error message?


More information about the macports-users mailing list