Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2405

Test failure - AttributeError: function/symbol 'mongocrypt_setopt_kms_providers' not found in library 'libmongocrypt.so.0':

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tests

      These errors stated happening recently. I think they could be fixed when we do PYTHON-1960:

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_requires_openssl_102_plus_test_ssl__platform~ubuntu_16.04_auth_ssl~auth_ssl_python_version~3.9_test_3.4_sharded_cluster_patch_c8be79f4a88c2d6d96c1098d92fee20973d28daf_5f92201e0305b93ca44cb929_20_10_23_00_13_19

       [2020/10/23 00:24:31.201] ERROR [0.002s]: test_kwargs (test_encryption.TestClientOptions)
       [2020/10/23 00:24:31.201] ----------------------------------------------------------------------
       [2020/10/23 00:24:31.201] Traceback (most recent call last):
       [2020/10/23 00:24:31.201]   File "/data/mci/d4522601bbd42a0aefd8bcd86342b2e9/src/test/test_encryption.py", line 126, in test_kwargs
       [2020/10/23 00:24:31.201]     client = MongoClient(auto_encryption_opts=opts, connect=False)
       [2020/10/23 00:24:31.201]   File "/data/mci/d4522601bbd42a0aefd8bcd86342b2e9/src/pymongo/mongo_client.py", line 755, in __init__
       [2020/10/23 00:24:31.201]     self._encrypter = _Encrypter.create(
       [2020/10/23 00:24:31.201]   File "/data/mci/d4522601bbd42a0aefd8bcd86342b2e9/src/pymongo/encryption.py", line 324, in create
       [2020/10/23 00:24:31.201]     return _Encrypter(io_callbacks, opts)
       [2020/10/23 00:24:31.201]   File "/data/mci/d4522601bbd42a0aefd8bcd86342b2e9/src/pymongo/encryption.py", line 250, in __init__
       [2020/10/23 00:24:31.201]     self._auto_encrypter = AutoEncrypter(io_callbacks, MongoCryptOptions(
       [2020/10/23 00:24:31.201]   File "/opt/python/3.9/lib/python3.9/site-packages/pymongocrypt/auto_encrypter.py", line 31, in __init__
       [2020/10/23 00:24:31.201]     self.mongocrypt = MongoCrypt(mongo_crypt_opts, callback)
       [2020/10/23 00:24:31.201]   File "/opt/python/3.9/lib/python3.9/site-packages/pymongocrypt/mongocrypt.py", line 142, in __init__
       [2020/10/23 00:24:31.201]     self.__init()
       [2020/10/23 00:24:31.201]   File "/opt/python/3.9/lib/python3.9/site-packages/pymongocrypt/mongocrypt.py", line 153, in __init
       [2020/10/23 00:24:31.201]     if not lib.mongocrypt_setopt_kms_providers(
       [2020/10/23 00:24:31.201]   File "/opt/python/3.9/lib/python3.9/site-packages/cffi/api.py", line 912, in __getattr__
       [2020/10/23 00:24:31.201]     make_accessor(name)
       [2020/10/23 00:24:31.201]   File "/opt/python/3.9/lib/python3.9/site-packages/cffi/api.py", line 908, in make_accessor
       [2020/10/23 00:24:31.201]     accessors[name](name)
       [2020/10/23 00:24:31.201]   File "/opt/python/3.9/lib/python3.9/site-packages/cffi/api.py", line 838, in accessor_function
       [2020/10/23 00:24:31.201]     value = backendlib.load_function(BType, name)
       [2020/10/23 00:24:31.201] AttributeError: function/symbol 'mongocrypt_setopt_kms_providers' not found in library 'libmongocrypt.so.0': /usr/lib/x86_64-linux-gnu/libmongocrypt.so.0: undefined symbol: mongocrypt_setopt_kms_providers
      

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: