From e0cda9e29ff96b3d3739da60fc0c8383706c691e Mon Sep 17 00:00:00 2001 From: mattijn Date: Sat, 18 Feb 2023 20:10:25 +0100 Subject: [PATCH] improve error messages --- altair/utils/data.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/altair/utils/data.py b/altair/utils/data.py index 8a46fb357..9b680d060 100644 --- a/altair/utils/data.py +++ b/altair/utils/data.py @@ -284,10 +284,12 @@ def import_pyarrow_interchange(): return pi except pkg_resources.DistributionNotFound: # The package is not installed - raise ImportError("The package 'pyarrow' is required, but not installed") + raise ImportError( + "Usage of the DataFrame Interchange Protocol requires the package 'pyarrow', but it is not installed." + ) except pkg_resources.VersionConflict: # The package is installed but does not meet the minimum version requirement raise ImportError( - "The installed version of 'pyarrow' does not meet " - "the minimum requirement of version 11.0.0." + "The installed version of 'pyarrow' does not meet the minimum requirement of version 11.0.0. " + "Please update 'pyarrow' to use the DataFrame Interchange Protocol." )