[gdal-dev] OpenEx not found - gdal_edit.py
Asmita Amol Wankhede
asmitawankhede at gmail.com
Fri Sep 8 02:13:42 PDT 2017
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/20170908/139661a1/attachment.html>
More information about the gdal-dev
mailing list