<div dir="ltr"><div>Hi Stefan,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 30, 2019 at 6:03 AM Stefan Blumentrath <<a href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Even,<br>
<br>
And thanks for your swift reply.<br>
<br>
If I install Python bindings like:<br>
pip3 install gdal==2.4.2<br>
installation works fine.<br>
<br>
However, if I then install nansat:<br>
pip3 install nansat<br>
then pip3 tries to re-install GDALs python bindings for GDAL version 3 (which fails).</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
...</blockquote><div> </div><div><br></div><div>The nansat package does not specify a dependency on a specific gdal version. See <a href="https://github.com/nansencenter/nansat/blob/master/setup.py#L58">https://github.com/nansencenter/nansat/blob/master/setup.py#L58</a>. Pip should not attempt to upgrade gdal when installing nansat because 2.4.2 is already installed and meets the requirements.</div><div><br></div><div>$ pip -V<br>pip 19.2.3 from /home/sean/.virtualenvs/nansat/lib/python3.6/site-packages/pip (python 3.6)<br></div><div>$ pip install gdal==2.4.2</div><div>$ pip install nansat</div><div>$ pip list<br>Package Version <br>--------------- ---------<br>certifi 2019.9.11<br>chardet 3.0.4 <br>GDAL 2.4.2 <br>idna 2.8 <br>nansat 1.2.2 <br>numpy 1.17.2 <br>Pillow 6.1.0 <br>pip 19.2.3 <br>pythesint 1.4.7 <br>python-dateutil 2.8.0 <br>PyYAML 5.1.2 <br>requests 2.22.0 <br>setuptools 41.2.0 <br>six 1.12.0 <br>urllib3 1.25.6 <br>wheel 0.33.6 <br>xdg 1.0.7 <br></div><div><br></div><div>I think there is something else going on with your system. Do you have a much older version of pip? Or is there a script that is executing `pip install -U nansat`?</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Sean Gillies</div></div></div>