[gdal-dev] import error on fedora?

Chao YUE chaoyuejoy at gmail.com
Tue Mar 26 10:34:21 PDT 2013


luckily, it solves my problem!  thanks!

Chao

On Tue, Mar 26, 2013 at 6:26 PM, Kyle Shannon <kyle at pobox.com> wrote:

> Not a fedora guy, but you probably need the gdal-python package, try
> installing python-gdal or gdal-python using yum.
>
> kss
>
> On Tue, Mar 26, 2013 at 11:18 AM, Chao YUE <chaoyuejoy at gmail.com> wrote:
> > Dear all,
> >
> > I use "yum install gdal"  to install gdal on fedora 16,
> > I can see all following commands in the terminal:
> >
> > ychao at lsce3139:~$ gdal
> > gdaladdo        gdal_contour    gdalenhance     gdalinfo
> > gdal_rasterize  gdaltransform   gdalwarp
> > gdalbuildvrt    gdaldem         gdal_grid       gdalmanage
>  gdaltindex
> > gdal_translate
> >
> > However when I tried to import gdal, I get import error:
> >
> > In [1]: import gdal
> >
> ---------------------------------------------------------------------------
> > ImportError                               Traceback (most recent call
> last)
> > <ipython-input-1-27bf4694dd2b> in <module>()
> > ----> 1 import gdal
> >
> > ImportError: No module named gdal
> >
> > In [2]: from osgeo import gdal
> >
> ---------------------------------------------------------------------------
> > ImportError                               Traceback (most recent call
> last)
> > <ipython-input-2-a04b80bf4e65> in <module>()
> > ----> 1 from osgeo import gdal
> >
> > ImportError: No module named osgeo
> >
> > so what's going on here? thanks for any response.
> >
> > best regards,
> >
> > chao
> > --
> >
> ***********************************************************************************
> > Chao YUE
> > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> > UMR 1572 CEA-CNRS-UVSQ
> > Batiment 712 - Pe 119
> > 91191 GIF Sur YVETTE Cedex
> > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
> >
> ************************************************************************************
> >
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130326/0b9b3096/attachment.html>


More information about the gdal-dev mailing list