Thanks. that worked.

On Sep 8, 2017 2:13 AM, "Asmita Amol Wankhede" <asmitawankh...@gmail.com>
wrote:

> Enviroment /OS -
>
> Ubuntu 16.04  - gdal 2.1.2 already installed with Python2.7 used to build
> GDAL.
>
> VERSIONS -
>
> gdal 2.1.2 when installed bundled with the code :
> '--with-python=%s '
> where s% is gdal_env['python_bin'],
>
> ISSUE-
> Trying to execute gdal_edit.py (or gdal2tiles.py, gdal_retile.py etc.) ,
> fails to find osgeo module. ImportError: No module named osgeo
>
> Fix1:  sudo apt-get install python-gdal
> This fixed the issue of osgeo, but specifically, when I am trying to run
> gdal_edit.py ,it does not find some of the methods from 2.1.2
>
> RUN gdal_edit.py
>
> /opt/google/bin/gdal_edit.py -a_srs EPSG:3857 RGB-corrected.tif
> Traceback (most recent call last):
>   File "/opt/google/bin/gdal_edit.py", line 274, in <module>
>     sys.exit(gdal_edit(sys.argv))
>   File "/opt/google/bin/gdal_edit.py", line 191, in gdal_edit
>     ds = gdal.OpenEx(datasetname, gdal.OF_RASTER | gdal.OF_UPDATE,
> open_options = open_options)
> AttributeError: 'module' object has no attribute 'OpenEx'
>
> OpenEx is part of 2.1.2 as I remember , please confirm how to check if I
> installed correct version of python-gdal
>
> --
> Thanks,
> Asmita
>
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to