From c25a83aee4523c86f0dc3d39fb0eed3fa3c05a0c Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Thu, 31 Oct 2019 16:14:57 -0700 Subject: [PATCH] PYTHON-2007 Fix pymongocrypt install error message --- pymongo/encryption.py | 2 +- pymongo/encryption_options.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pymongo/encryption.py b/pymongo/encryption.py index 1986f5f50..d9afe048b 100644 --- a/pymongo/encryption.py +++ b/pymongo/encryption.py @@ -387,7 +387,7 @@ class ClientEncryption(object): raise ConfigurationError( "client side encryption requires the pymongocrypt library: " "install a compatible version with: " - "python -m pip install pymongo['encryption']") + "python -m pip install 'pymongo[encryption]'") if not isinstance(codec_options, CodecOptions): raise TypeError("codec_options must be an instance of " diff --git a/pymongo/encryption_options.py b/pymongo/encryption_options.py index bc469f0ea..60bb41e33 100644 --- a/pymongo/encryption_options.py +++ b/pymongo/encryption_options.py @@ -115,7 +115,7 @@ class AutoEncryptionOpts(object): raise ConfigurationError( "client side encryption requires the pymongocrypt library: " "install a compatible version with: " - "python -m pip install pymongo['encryption']") + "python -m pip install 'pymongo[encryption]'") self._kms_providers = kms_providers self._key_vault_namespace = key_vault_namespace