Opened 8 months ago

Closed 5 months ago

#2441 closed defect (fixed)

VMDK python3 datacube demo broken

Reported by: darkblueb Owned by: osgeolive@…
Priority: critical Milestone: OSGeoLive16.0
Component: OSGeoLive Keywords: python, datacube
Cc: osgeolive@…

Description

import datacube
ERROR 1: PROJ: proj_create_from_database: Cannot find proj.db
rasterio/crs.pyx in rasterio.crs.CRS.from_epsg()
/usr/lib/python3/dist-packages/datacube/utils/geometry/_warp.py in <module>
---> 14 _WRP_CRS = rasterio.crs.CRS.from_epsg(3857

Attachments (2)

Screenshot_20230823_151546.png (65.0 KB ) - added by kalxas 8 months ago.
Screenshot_20231126_120333.png (38.1 KB ) - added by kalxas 5 months ago.

Download all attachments as: .zip

Change history (11)

comment:1 by darkblueb, 8 months ago

confirm this is not broken in ISO rc1

comment:2 by darkblueb, 8 months ago

to recreate the bug

1) terminal window $ ipython3

2) import datacube

comment:3 by kalxas, 8 months ago

The VM build log is located at /var/log/osgeolive/

Wondering if the actinia installer actually worked in virtualenv, a rasterio version was pulled by pip in logs.

comment:4 by kalxas, 8 months ago

Cc: osgeolive@… added

by kalxas, 8 months ago

comment:5 by kalxas, 8 months ago

Looks like virtualenv for actinia is fine (see screenshot)

comment:6 by kalxas, 5 months ago

Looks like this issue is still present in rc2.

Maybe it is related to a system patch, needs to be investigated.

by kalxas, 5 months ago

comment:7 by kalxas, 5 months ago

There seems to be a mismatch between PROJ_LIB environment variable and the actual folder containing proj.db

comment:8 by kalxas, 5 months ago

Found the culprit:

Latest system update included python3-ecmwflibs

After removing this package, importing datacube works fine.

comment:9 by kalxas, 5 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.