Opened 2 months ago

Closed 6 weeks ago

#2483 closed enhancement (fixed)

odc-geo upgrade

Reported by: darkblueb Owned by: osgeolive@…
Priority: major Milestone: OSGeoLive17.0
Component: OSGeoLive Keywords: opendatacube, python3
Cc: osgeolive@…

Description

Opendatacube project core library odc-geo can be upgraded. Using a very recent build alpha17 ISO image, call pip3 to install odc-geo and watch the result. pip3 believes that odc-geo==0.4.8 is directly installable with the other core lib versions already there.

user@osgeolive:~$ sudo pip3 install --upgrade --break-system-packages  odc-geo
Requirement already satisfied: odc-geo in /usr/lib/python3/dist-packages (0.2.1)
Collecting odc-geo
  Downloading odc_geo-0.4.8-py3-none-any.whl.metadata (5.0 kB)
Requirement already satisfied: affine in /usr/lib/python3/dist-packages (from odc-geo) (2.4.0)
Requirement already satisfied: cachetools in /usr/lib/python3/dist-packages (from odc-geo) (5.3.0)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from odc-geo) (1.26.4)
Requirement already satisfied: pyproj>=3.0.0 in /usr/lib/python3/dist-packages (from odc-geo) (3.6.1)
Requirement already satisfied: shapely in /usr/lib/python3/dist-packages (from odc-geo) (2.0.3)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from pyproj>=3.0.0->odc-geo) (2023.11.17)
Downloading odc_geo-0.4.8-py3-none-any.whl (150 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 150.1/150.1 kB 267.5 kB/s eta 0:00:00
Installing collected packages: odc-geo
  Attempting uninstall: odc-geo
    Found existing installation: odc-geo 0.2.1
    Uninstalling odc-geo-0.2.1:
      Successfully uninstalled odc-geo-0.2.1
Successfully installed odc-geo-0.4.8

If true - that is as simple as it gets.. just take 0.4.8 and package it without other depends.. and done

Change History (7)

comment:1 by kalxas, 2 months ago

Cc: osgeolive@… added

comment:2 by darkblueb, 2 months ago

Alex Leith writes: Whens the packaging deadline? I can probably whip up a couple of notebooks to go along with those two libraries!

comment:3 by kalxas, 7 weeks ago

datacube, odc-geo and odc-stac debian packages updated to latest versions in nightly ppa

comment:4 by kalxas, 7 weeks ago

Priority: criticalmajor

comment:5 by darkblueb, 6 weeks ago

ol17_build95

user@osgeolive:~/Downloads$ sudo dpkg -i python3-datacube_1.8.19-0~noble1_all.deb 
(Reading database ... 352476 files and directories currently installed.)
Preparing to unpack python3-datacube_1.8.19-0~noble1_all.deb ...
Unpacking python3-datacube (1.8.19-0~noble1) over (1.8.19-0~noble1) ...
Setting up python3-datacube (1.8.19-0~noble1) ...

user@osgeolive:~/Downloads$ sudo dpkg -i python3-odc*
(Reading database ... 352476 files and directories currently installed.)
Preparing to unpack python3-odc-geo_0.4.8-0~noble0_all.deb ...
Unpacking python3-odc-geo (0.4.8-0~noble0) over (0.4.8-0~noble0) ...
Preparing to unpack python3-odc-stac_0.3.10-0~noble0_all.deb ...
Unpacking python3-odc-stac (0.3.10-0~noble0) over (0.3.10-0~noble0) ...
Setting up python3-odc-geo (0.4.8-0~noble0) ...
Setting up python3-odc-stac (0.3.10-0~noble0) ...
user@osgeolive:~/Downloads$ less python3-odc-geo_0.4.8-0~noble0_all.deb
user@osgeolive:~/Downloads$ ls -lh /usr/lib/python3/dist-packages/odc/geo/
total 348K
-rw-r--r-- 1 root root 5.6K Jul 17 00:12 _blocks.py
drwxr-xr-x 1 root root  200 Oct 27 23:47 cog/
-rw-r--r-- 1 root root 3.3K Jul 17 00:12 _compress.py
-rw-r--r-- 1 root root 2.6K Jul 17 00:12 converters.py
-rw-r--r-- 1 root root  15K Jul 17 00:12 crs.py
-rw-r--r-- 1 root root 4.0K Jul 17 00:12 _dask.py
drwxr-xr-x 1 root root  120 Oct 27 23:47 data/
-rw-r--r-- 1 root root 9.8K Jul 17 00:12 gcp.py
-rw-r--r-- 1 root root  49K Jul 17 00:12 geobox.py
-rw-r--r-- 1 root root  46K Jul 17 00:12 geom.py
-rw-r--r-- 1 root root  11K Jul 17 00:12 gridspec.py
-rw-r--r-- 1 root root 1.2K Jul 17 00:12 __init__.py
-rw-r--r-- 1 root root 2.0K Jul 17 00:12 _interop.py
-rw-r--r-- 1 root root 9.2K Jul 17 00:12 _map.py
-rw-r--r-- 1 root root  23K Jul 17 00:12 math.py
-rw-r--r-- 1 root root  20K Jul 17 00:12 overlap.py
drwxr-xr-x 2 root root  500 Oct 27 23:47 __pycache__/
-rw-r--r-- 1 root root    0 Jul 17 00:12 py.typed
-rw-r--r-- 1 root root 8.8K Jul 17 00:12 _rgba.py
-rw-r--r-- 1 root root  22K Jul 17 00:12 roi.py
-rw-r--r-- 1 root root 6.2K Jul 17 00:12 testutils.py
-rw-r--r-- 1 root root  12K Jul 17 00:12 types.py
-rw-r--r-- 1 root root  11K Jul 17 00:12 ui.py
-rw-r--r-- 1 root root   55 Jul 17 00:12 _version.py
-rw-r--r-- 1 root root 7.0K Jul 17 00:12 warp.py
-rw-r--r-- 1 root root  39K Jul 17 00:12 _xr_interop.py
-rw-r--r-- 1 root root 1.4K Jul 17 00:12 xr.py

comment:6 by darkblueb, 6 weeks ago

user@osgeolive:~/Downloads$ pytest-3 odc-geo-0.4.8/tests/
========================================= test session starts =========================================
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/user/Downloads/odc-geo-0.4.8
plugins: anyio-4.2.0
collected 612 items / 2 skipped                                                                       

odc-geo-0.4.8/tests/test_bbox.py ........................                                       [  3%]
odc-geo-0.4.8/tests/test_blocks.py .........                                                    [  5%]
odc-geo-0.4.8/tests/test_converters.py .......                                                  [  6%]
odc-geo-0.4.8/tests/test_crs.py ..........................                                      [ 10%]
odc-geo-0.4.8/tests/test_dask_interop.py ..                                                     [ 11%]
odc-geo-0.4.8/tests/test_datasets.py .....                                                      [ 11%]
odc-geo-0.4.8/tests/test_gbox_ops.py .                                                          [ 12%]
odc-geo-0.4.8/tests/test_gcp.py ........                                                        [ 13%]
odc-geo-0.4.8/tests/test_geobox.py .....................................................        [ 22%]
odc-geo-0.4.8/tests/test_geoboxtiles.py ........                                                [ 23%]
odc-geo-0.4.8/tests/test_geom.py .....................................x.....................    [ 33%]
odc-geo-0.4.8/tests/test_gridspec.py ......                                                     [ 33%]
odc-geo-0.4.8/tests/test_map.py ....                                                            [ 34%]
odc-geo-0.4.8/tests/test_math.py .............................................................. [ 44%]
............................................................................................... [ 60%] 
.................................................................                               [ 70%] 
odc-geo-0.4.8/tests/test_mpu.py .........                                                       [ 72%]
odc-geo-0.4.8/tests/test_mpu_fs.py ........                                                     [ 73%]
odc-geo-0.4.8/tests/test_overlap.py .............                                               [ 75%]
odc-geo-0.4.8/tests/test_rgba.py ...                                                            [ 75%]
odc-geo-0.4.8/tests/test_roi.py ...............................                                 [ 81%]
odc-geo-0.4.8/tests/test_s3.py .                                                                [ 81%]
odc-geo-0.4.8/tests/test_types.py ......                                                        [ 82%]
odc-geo-0.4.8/tests/test_ui.py ..                                                               [ 82%]
odc-geo-0.4.8/tests/test_warp.py ................                                               [ 85%]
odc-geo-0.4.8/tests/test_xr_interop.py ........................................................ [ 94%]
.................................                                                                      

========================================== warnings summary ===========================================
tests/test_geom.py::test_gen_test_image_xy
  /usr/lib/python3/dist-packages/odc/geo/testutils.py:122: RuntimeWarning: invalid value encountered in cast
    return a.astype(ii.dtype)

tests/test_xr_interop.py::test_xr_reproject[xx_chunks1-None]
tests/test_xr_interop.py::test_xr_reproject[xx_chunks2-None]
  /usr/lib/python3/dist-packages/rasterio/warp.py:344: NotGeoreferencedWarning: Dataset has no geotransform, gcps, or rpcs. The identity matrix will be returned.
    _reproject(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================= 611 passed, 2 skipped, 1 xfailed, 3 warnings in 30.40s ========================

comment:7 by kalxas, 6 weeks ago

Resolution: fixed
Status: newclosed

Completed in ppa

Note: See TracTickets for help on using tickets.