This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git
The following commit(s) were added to refs/heads/main by this push:
new 068094f chore(python/sedonadb): Improve error message when pyproj is
not installed (#98)
068094f is described below
commit 068094fcc6bd7edc8f0af6bd24487c0469d8f776
Author: Dewey Dunnington <[email protected]>
AuthorDate: Tue Sep 16 16:33:50 2025 -0500
chore(python/sedonadb): Improve error message when pyproj is not installed
(#98)
---
python/sedonadb/python/sedonadb/context.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/python/sedonadb/python/sedonadb/context.py
b/python/sedonadb/python/sedonadb/context.py
index 8e50d8f..13eebea 100644
--- a/python/sedonadb/python/sedonadb/context.py
+++ b/python/sedonadb/python/sedonadb/context.py
@@ -245,7 +245,10 @@ def configure_proj(
import warnings
all_errors = "\n".join(errors)
- warnings.warn(f"Failed to configure PROJ (tried
{tried}):\n{all_errors}")
+ warnings.warn(
+ "Failed to configure PROJ. Is pyproj or a system install of
PROJ available?"
+ f"\nDetails: tried {tried}\n{all_errors}"
+ )
return
else:
raise ValueError(f"Unknown preset: {preset}")