[OSGeoLive] #2393: python3 pystac update
OSGeoLive
trac_osgeolive at osgeo.org
Mon Oct 28 16:38:04 PDT 2024
#2393: python3 pystac update
-------------------------+----------------------------
Reporter: darkblueb | Owner: osgeolive@…
Type: enhancement | Status: new
Priority: major | Milestone: OSGeoLive17.0
Component: OSGeoLive | Resolution:
Keywords: python |
-------------------------+----------------------------
Comment (by darkblueb):
**ol17_build95**
* running `pytest-3` on `odc-stac-0.3.10` fails.
* `sudo apt install python3-referencing` does improve but not cure
* per AlexLeith; tests (and libs?) need a newer `jsonschema`
* available `python3-jsonschema (4.10.3-2ubuntu1)` does not fix the tests
* `pip3 install jsonschema` does fix the tests
{{{
user at osgeolive:~/Downloads$ pip3 install --upgrade --break-system-packages
jsonschema
Defaulting to user installation because normal site-packages is not
writeable
Requirement already satisfied: jsonschema in /usr/lib/python3/dist-
packages (4.10.3)
Collecting jsonschema
Downloading jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
Requirement already satisfied: attrs>=22.2.0 in /usr/lib/python3/dist-
packages (from jsonschema) (23.2.0)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema)
Downloading jsonschema_specifications-2024.10.1-py3-none-
any.whl.metadata (3.0 kB)
Requirement already satisfied: referencing>=0.28.4 in /usr/lib/python3
/dist-packages (from jsonschema) (0.31.0)
Requirement already satisfied: rpds-py>=0.7.1 in /usr/lib/python3/dist-
packages (from jsonschema) (0.12.0)
Downloading jsonschema-4.23.0-py3-none-any.whl (88 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.5/88.5 kB 288.7 kB/s eta
0:00:00
Downloading jsonschema_specifications-2024.10.1-py3-none-any.whl (18 kB)
Installing collected packages: jsonschema-specifications, jsonschema
WARNING: The script jsonschema is installed in '/home/user/.local/bin'
which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress
this warning, use --no-warn-script-location.
ERROR: pip's dependency resolver does not currently take into account all
the packages that are installed. This behaviour is the source of the
following dependency conflicts.
pywps 4.6.0 requires geotiff, which is not installed.
Successfully installed jsonschema-4.23.0 jsonschema-
specifications-2024.10.1
user at osgeolive:~/Downloads$
user at osgeolive:~/Downloads$ echo $PATH
/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
user at osgeolive:~/Downloads$ PATH=$PATH:/home/user/.local/bin/
user at osgeolive:~/Downloads$ ls
demo_odcgeo.py osgeo-desktop_1.png
gdal-data_3.9.3+dfsg-1~noble0_all.deb osgeo-desktop_2.png
gdal-plugins_3.9.3+dfsg-1~noble0_amd64.deb
python3-datacube_1.8.19-0~noble1_all.deb
libgdal35_3.9.3+dfsg-1~noble0_amd64.deb
python3-deprecat_2.1.3-0~noble0_all.deb
libgdal-dev_3.9.3+dfsg-1~noble0_amd64.deb
python3-eodag_2.12.1-1~noble0_all.deb
odc-geo-0.4.8/
python3-gdal_3.9.3+dfsg-1~noble0_amd64.deb
odc-geo-0.4.8.tar.gz python3-odc-
geo_0.4.8-0~noble0_all.deb
odc-stac-0.3.10/ python3-odc-
stac_0.3.10-0~noble0_all.deb
odc-stac-0.3.10.tar.gz
user at osgeolive:~/Downloads$ pytest-3 odc-stac-0.3.10/tests/
========================================= test session starts
=========================================
platform linux -- Python 3.12.3, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/user/Downloads/odc-stac-0.3.10
plugins: anyio-4.2.0
collected 60 items / 1 skipped
odc-stac-0.3.10/tests/test_eo3converter.py ..........
[ 16%]
odc-stac-0.3.10/tests/test_load.py ...
[ 21%]
odc-stac-0.3.10/tests/test_mdtools.py .............x......................
[ 81%]
odc-stac-0.3.10/tests/test_model.py ...........
[100%]
========================================== warnings summary
===========================================
../../../usr/lib/python3/dist-packages/xarray/core/duck_array_ops.py:215:
2 warnings
tests/test_load.py: 4 warnings
tests/test_model.py: 10 warnings
/usr/lib/python3/dist-packages/xarray/core/duck_array_ops.py:215:
DeprecationWarning: parsing timezone aware datetimes is deprecated; this
will raise an error in the future
return data.astype(dtype, **kwargs)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 59 passed, 1 skipped, 1 xfailed, 16 warnings in
8.22s ========================
}}}
--
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2393#comment:16>
OSGeoLive <https://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.
More information about the osgeolive
mailing list