<div dir="ltr">Dear Even, all,<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 3:25 PM, Even Rouault <span dir="ltr"><<a target="_blank" href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div class="gmail-HOEnZb"><div class="gmail-h5">Le jeudi 06 octobre 2016 14:47:05, Margherita Di Leo a écrit :<br>
> Dear Even,<br>
><br>
><br>
<br>
</div></div>Try:<br>
<br>
export PYTHONPATH=$GDAL_INSTALL_DIR/<wbr>lib/python2.7/site-packages<br>
<br>
( adapt the path to the python version you use)<br></blockquote><div><br>It didn't help.<br>Sorry to go off-topic from original subject but I really cannot understand what's wrong with my work flow. <br>I write down every single step:<br><br># Download source<br>cd $HOME/opt<br>svn checkout <a href="https://svn.osgeo.org/gdal/trunk/gdal">https://svn.osgeo.org/gdal/trunk/gdal</a> gdal-source<br><br># Create bin dir<br>mkdir -p $HOME/opt/gdal-bin<br>export GDAL_INSTALL_DIR=$HOME/opt/gdal-bin<br><br># set environment variables for current session<br>export PATH=$GDAL_INSTALL_DIR/bin:$PATH<br>export LD_LIBRARY_PATH=$GDAL_INSTALL_DIR/lib:$LD_LIBRARY_PATH<br>export GDAL_DATA=$GDAL_INSTALL_DIR/share/gdal<br><br># compile gdal in local folder<br>cd $HOME/opt/gdal-source<br>./configure --prefix=$GDAL_INSTALL_DIR<br>make <br>make install<br><br># setting up python environment<br>cd $HOME/opt/gdal-source/swig/python<br>python setup.py build<br>mkdir -p $GDAL_INSTALL_DIR/lib64/python2.7/site-packages/ <br>export PYTHONPATH=$GDAL_INSTALL_DIR/lib64/python2.7/site-packages:$PYTHONPATH<br>python setup.py install --prefix=$GDAL_INSTALL_DIR<br><br># Check if works <br>python <br>from osgeo import gdal<br><br><br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>  File "osgeo/__init__.py", line 21, in <module><br>    _gdal = swig_import_helper()<br>  File "osgeo/__init__.py", line 13, in swig_import_helper<br>    import _gdal<br>ImportError: No module named _gdal<br></div><div><br></div><div> <br></div></div>Outside python:<br><br>gdalinfo --version<br>GDAL 2.2.0dev, released 2016/99/99<br><br>:-/<br></div><div class="gmail_extra"><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#666666">Margherita Di Leo</font></div></div></div></div></div></div></div></div></div>
</div></div></div></div>