<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi, the current gdal-ubuntu-small docker (3.9.1) appears to have
    python bindings that are not compatible with numpy 2.0.0. If I pip
    install --upgrade numpy==2.0.0 and then try `from osgeo import gdal,
    gdal_array` I get an error:<br>
    <br>
    In [4]: from osgeo import gdal, gdal_array<br>
    <br>
    A module that was compiled using NumPy 1.x cannot be run in<br>
    NumPy 2.0.0 as it may crash. To support both 1.x and 2.x<br>
    versions of NumPy, modules must be compiled with NumPy 2.0.<br>
    Some module may need to rebuild instead e.g. with
    'pybind11>=2.12'.<br>
    <br>
    If you are a user of the module, the easiest solution will be to<br>
    downgrade to 'numpy<2' or try to upgrade the affected module.<br>
    We expect that some modules will need time to support NumPy 2.<br>
    <br>
    Traceback (most recent call last):  File "/root/.local/bin/ipython",
    line 8, in <module><br>
        sys.exit(start_ipython())<br>
      File
    "/root/.local/lib/python3.12/site-packages/IPython/__init__.py",
    line 130, in start_ipython<br>
        return launch_new_instance(argv=argv, **kwargs)<br>
      File
"/root/.local/lib/python3.12/site-packages/traitlets/config/application.py",
    line 1075, in launch_instance<br>
        app.start()<br>
      File
    "/root/.local/lib/python3.12/site-packages/IPython/terminal/ipapp.py",
    line 317, in start<br>
        self.shell.mainloop()<br>
      File
"/root/.local/lib/python3.12/site-packages/IPython/terminal/interactiveshell.py",
    line 917, in mainloop<br>
        self.interact()<br>
      File
"/root/.local/lib/python3.12/site-packages/IPython/terminal/interactiveshell.py",
    line 910, in interact<br>
        self.run_cell(code, store_history=True)<br>
      File
"/root/.local/lib/python3.12/site-packages/IPython/core/interactiveshell.py",
    line 3075, in run_cell<br>
        result = self._run_cell(<br>
      File
"/root/.local/lib/python3.12/site-packages/IPython/core/interactiveshell.py",
    line 3130, in _run_cell<br>
        result = runner(coro)<br>
      File
"/root/.local/lib/python3.12/site-packages/IPython/core/async_helpers.py",
    line 128, in _pseudo_sync_runner<br>
        coro.send(None)<br>
      File
"/root/.local/lib/python3.12/site-packages/IPython/core/interactiveshell.py",
    line 3334, in run_cell_async<br>
        has_raised = await self.run_ast_nodes(code_ast.body, cell_name,<br>
      File
"/root/.local/lib/python3.12/site-packages/IPython/core/interactiveshell.py",
    line 3517, in run_ast_nodes<br>
        if await self.run_code(code, result, async_=asy):<br>
      File
"/root/.local/lib/python3.12/site-packages/IPython/core/interactiveshell.py",
    line 3577, in run_code<br>
        exec(code_obj, self.user_global_ns, self.user_ns)<br>
      File "<ipython-input-4-dd0a9b2f852a>", line 1, in
    <module><br>
        from osgeo import gdal, gdal_array<br>
      File "/usr/lib/python3/dist-packages/osgeo/gdal_array.py", line
    10, in <module><br>
        from . import _gdal_array<br>
    <br>
    I hoped that the python bindings in the docker image would be
    compatible with both numpy 1 and 2, but apparently they're not?
    Would it be possible to create docker images with bindings that are
    compatible with numpy2? Or would you rather wait until the official
    ubuntu numpy package moves to 2.0?<br>
    <br>
    Thanks,<br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title></title>
      <div class="moz-signature">
        <div class="moz-signature">
          <div dir="ltr" style="margin-left:2.88pt;" align="left"><br>
            <table
              style="border: medium none; border-collapse: collapse;"
              width="408" height="179">
              <colgroup><col width="60"><col width="283"></colgroup><tbody>
                <tr style="height:10.799999999999999pt">
                  <td
style="border-left:solid #003c5a
                  1.5pt;border-right:solid #ffffff
                  1pt;border-bottom:solid #ffffff 1pt;border-top:solid
                  #ffffff 1pt;vertical-align:top;padding:4.32pt 4.32pt
                  4.32pt
                  4.32pt;overflow:hidden;overflow-wrap:break-word;">
                    <p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;"><span
style="border:none;display:inline-block;overflow:hidden;width:53px;height:53px;"><img
src="https://lh6.googleusercontent.com/t1GD8ftw5REdi0_kM1UjrXeX-Y-jF5xKxDqUGLsLKzftVahqw_CWQhqciHkLLYkldd9pcYmNd-pmzNnY1fc93vYpJ0Q0P-O1VC51jsTJUy-yhjF4ioK2hGq156_JYVROec9im6tW"
                      style="margin-left:0px;margin-top:0px;" width="53"
                      height="53"></span></span></p>
                  </td>
                  <td
style="border-left:solid #ffffff
                  1pt;border-right:solid #ffffff 1pt;border-bottom:solid
                  #ffffff 1pt;border-top:solid #ffffff
                  1pt;vertical-align:middle;padding:5pt 5pt 5pt
                  5pt;overflow:hidden;overflow-wrap:break-word;">
                    <p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:11pt;font-family:Arial;color:#003c5a;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Vincent Schut</span></p>
                    <p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:10pt;font-family:Arial;color:#003c5a;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Remote Sensing Software Engineer
</span></p>
                  </td>
                </tr>
                <tr style="height:10.799999999999999pt">
                  <td colspan="2"
style="border-left:solid #003c5a
                  1.5pt;border-right:solid #ffffff
                  1pt;border-bottom:solid #ffffff 1pt;border-top:solid
                  #ffffff 1pt;vertical-align:top;padding:5pt 5pt 5pt
                  5pt;overflow:hidden;overflow-wrap:break-word;">
                    <p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span
style="font-size:8pt;font-family:Arial;color:#b7b7b7;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;"><span
style="border:none;display:inline-block;overflow:hidden;width:217px;height:34px;"><img
src="https://lh5.googleusercontent.com/H6PdQi9jrkkJRWy7wGQ92waInTqhh3atodO0R0CNgKm2YooJBK2vOEU2M7t5HB5FMJyOUhyFxsTqtEnqLi3zXnRbPNJEvoEyr9RyBFKKHUjT8py8Pu92ga3Urmp_zARoHqtNFY6K"
                      style="margin-left:0px;margin-top:0px;"
                      width="217" height="34"></span></span></p>
                    <p dir="ltr"
style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"
id="docs-internal-guid-30036d47-7fff-c8bb-a5a1-95628900a5a0"><span
style="font-size:8pt;font-family:Arial;color:#b7b7b7;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">+31 302272679 ~ Maliebaan 22 | 3581CP | Utrecht | Netherlands</span></p>
                    <a
href="https://www.linkedin.com/company/satelligence/"
                      style="text-decoration:none;"
id="docs-internal-guid-fa359a62-7fff-0882-e450-fae9010e52d8"><span
style="font-size:8pt;font-family:Arial;color:#b7b7b7;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;-webkit-text-decoration-skip:none;text-decoration-skip-ink:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Linkedin</span></a><span
style="font-size:8pt;font-family:Arial;color:#b7b7b7;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;"> ~ </span><a
                      href="http://www.satelligence.com"
                      style="text-decoration:none;"><span
style="font-size:8pt;font-family:Arial;color:#b7b7b7;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;-webkit-text-decoration-skip:none;text-decoration-skip-ink:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">satelligence.com</span></a><a
                      href="http://www.satelligence.com"
                      style="text-decoration:none;"><span
style="font-size:8pt;font-family:Arial;color:#b7b7b7;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;-webkit-text-decoration-skip:none;text-decoration-skip-ink:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;"></span></a></td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>