<div dir="ltr">that's the part where I'm not sure. For simplicity sake, I'm sourcing the GDAL install from osgeo4mac<div><a href="https://github.com/OSGeo/homebrew-osgeo4mac">https://github.com/OSGeo/homebrew-osgeo4mac</a><br></div><div><br></div><div>It's super practical. And since I'm not big on C compiling (and setup of compilation), that's helpful. But then I don't know what it does.</div><div><br></div><div>Also, those 2 lines are warning. I don't know if they are the one causing the bus error and the subsequent crash of the console.</div><div><br></div><div>But you are right that I seem to have several libtiff</div><div>4.0.8</div><div>4.0.7_3</div><div>4.0.7_2<br></div><div>4.0.7_1<br></div><div>4.0.7<br></div><div><br></div><div>I tried to remove gdal, and the python bindings and reinstall from scratch again, but same result.</div><div><br></div><div>What I really can't understand is that ipython and ipython launched through django, in the same virtualenv, give different results</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font color="#999999"><br></font></div><div><font color="#999999">---</font></div><div><font color="#999999">Gregory Bataille</font><br></div></div></div></div>
<br><div class="gmail_quote">On Tue, Jul 25, 2017 at 11:37 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal"><span class="">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">On mardi 25 juillet 2017 11:00:36 CEST Grégory Bataille wrote:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> Hi everyone,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> I have the strangest issue and I don't know how to address it.</p>
</span><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> I'm running on a *mac*. I have *gdal 2.2.0* installed on the system.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> I have a python 3.5.2 *virtualenv* (same behavior in 3.6.1)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> inside I have a number of libraries, including django and the *GDAL</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> bindings*.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> If from this virtualenv I open a *ipython* console and try to gdal.Open a</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> TIFF, *all works well*.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> If I open a *django console* (django manage.py shell) in this virtualenv</p><span class="">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> and try to perform the same operation, I get</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > TIFFReadDirectory: Warning, Unknown field with tag 42112 (0xa480)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > encountered.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > TIFFReadDirectory: Warning, Unknown field with tag 42113 (0xa481)</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">> > encountered.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
</span><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">This is weird. Those are the TIFFTAG_GDAL_METADATA and TIFFTAG_GDAL_NODATA tags that are defined by the GDAL GTiff driver. So if you open something with GDALOpen() that shouldn't happen normally</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">I'm wondering if in your whole system you don't have several libtiff versions mixed together. How is your GDAL configured ? If it uses internal libtiff and libgeotiff, make sure to ./configure --with-rename-internal-<wbr>libtiff-symbols and --with-rename-internal-<wbr>libgeotiff-symbols so that the internal libtiff and libgeotiff in GDAL do not collide with other.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Even</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div></blockquote></div><br></div>