<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 7, 2016 at 12:00 PM, Margherita Di Leo <span dir="ltr"><<a href="mailto:diregola@gmail.com" target="_blank">diregola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Even, all,<br><div><div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Oct 6, 2016 at 3:25 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br></span><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class=""><div class="m_4086749453336875256gmail-HOEnZb"><div class="m_4086749453336875256gmail-h5">Le jeudi 06 octobre 2016 14:47:05, Margherita Di Leo a écrit :<br>
> Dear Even,<br>
><br>
><br>
<br>
</div></div></span><span class="">Try:<br>
<br>
export PYTHONPATH=$GDAL_INSTALL_DIR/l<wbr>ib/python2.7/site-packages<br>
<br>
( adapt the path to the python version you use)<br></span></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" target="_blank">https://svn.osgeo.org/gdal/<wbr>trunk/gdal</a> gdal-source<br><br># Create bin dir<br>mkdir -p $HOME/opt/gdal-bin<br>export GDAL_INSTALL_DIR=$HOME/opt/<wbr>gdal-bin<br><br># set environment variables for current session<br>export PATH=$GDAL_INSTALL_DIR/bin:$<wbr>PATH<br>export LD_LIBRARY_PATH=$GDAL_INSTALL_<wbr>DIR/lib:$LD_LIBRARY_PATH<br>export GDAL_DATA=$GDAL_INSTALL_DIR/<wbr>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/<wbr>python<br>python setup.py build<br>mkdir -p $GDAL_INSTALL_DIR/lib64/<wbr>python2.7/site-packages/ <br>export PYTHONPATH=$GDAL_INSTALL_DIR/<wbr>lib64/python2.7/site-packages:<wbr>$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:<span class=""><br><br>gdalinfo --version<br>GDAL 2.2.0dev, released 2016/99/99<br></span></div></div></div></div></blockquote><div><br></div><div> I don't know what was happening, but now this works. Sorry for the noise.</div></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>