[gdal-dev] OpenEx not found - gdal_edit.py
Asmita Amol Wankhede
asmitawankhede at gmail.com
Fri Sep 29 20:13:02 PDT 2017
Thanks. that worked.
On Sep 8, 2017 2:13 AM, "Asmita Amol Wankhede" <asmitawankhede at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170929/be6a831f/attachment.html>
More information about the gdal-dev
mailing list