Opened 11 days ago
Last modified 6 days ago
#2489 new enhancement
python3 datacube-core
Reported by: | darkblueb | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | OSGeoLive17.0 |
Component: | OSGeoLive | Keywords: | python |
Cc: |
Description
ol17_build95
install datacube==1.8.19
via dot-deb
Change History (4)
comment:1 by , 11 days ago
comment:2 by , 7 days ago
datacube=# \d List of relations Schema | Name | Type | Owner --------+-------------------------+----------+------------ agdc | dataset | table | agdc_admin agdc | dataset_location | table | agdc_admin agdc | dataset_location_id_seq | sequence | agdc_admin agdc | dataset_source | table | agdc_admin agdc | dataset_type | table | agdc_admin agdc | dataset_type_id_seq | sequence | agdc_admin agdc | metadata_type | table | agdc_admin agdc | metadata_type_id_seq | sequence | agdc_admin public | geography_columns | view | user public | geometry_columns | view | user public | spatial_ref_sys | table | user (11 rows)
comment:3 by , 6 days ago
ol17_build107
opendatacube==1.8.19
is there but datacube.conf
appears to need attention; ERROR
demo data here https://download.osgeo.org/livedvd/data/odc/
dot-conf is defined inline https://git.osgeo.org/gitea/osgeolive/OSGeoLive/raw/commit/3fadfe06acdb4c151a285edee6759976e0f87fb7/bin/install_datacube.sh
build log shows
Setting up python3-datacube (1.8.19-0~noble1) ... mkdir: created directory '/usr/local/share/data/odc' CREATE EXTENSION CREATE EXTENSION 2024-11-02 14:18:43,677 137395 datacube INFO Running datacube command: /usr/bin/datacube -v -C /home/user/.config/dat acube/datacube.conf system init Initialising database... 2024-11-02 14:18:43,810 137395 datacube.drivers.postgres._core INFO Ensuring user roles. 2024-11-02 14:18:43,909 137395 datacube.drivers.postgres._core INFO Creating schema. 2024-11-02 14:18:43,915 137395 datacube.drivers.postgres._core INFO Creating tables. 2024-11-02 14:18:44,750 137395 datacube.drivers.postgres._core INFO Creating triggers. 2024-11-02 14:18:44,828 137395 datacube.drivers.postgres._core INFO Creating added column. 2024-11-02 14:18:44,839 137395 datacube.drivers.postgres._core INFO Adding role grants. 2024-11-02 14:18:44,850 137395 datacube.index.postgres.index INFO Adding default metadata types. Created. Checking indexes/views. 2024-11-02 14:18:44,974 137395 datacube.drivers.postgres._api INFO Checking dynamic views/indexes. (rebuild views=Tru e, indexes=False) Done.
... Adding "clip_landsat" (this might take a while) DONE Adding "esa_worldcover_2021" (this might take a while) DONE Adding "tsrtm2_dem_prizren" (this might take a while) DONE =============================================================== Finished "install_datacube.sh"
comment:4 by , 6 days ago
import datacube dc = datacube.Datacube(config='/home/user/.config/datacube/datacube.conf') dc.list_products() --------------------------------------------------------------------------- KeyError Traceback (most recent call last) Cell In[5], line 1 ----> 1 dc.list_products()
Note:
See TracTickets
for help on using tickets.
## test datacube-core
$ sudo apt install --yes python3-hypothesis
$ pip3 install --break-system-packages moto
... Successfully installed moto-5.0.18 responses-0.25.3
## run tests; 7 FAIL, 460 PASS