Exception appears after running any script that connects to MongoDB

It seems that every script I run that uses a MongoClient with auto_encryption_opts succeeds but ends with an exception when mongocrypt tries to close.

The exception is:
Exception ignored in: <function MongoCrypt._ del _ at 0x00000136DAFAAB00>
Traceback (most recent call last):
File “C:\git\insights\venv\lib\site-packages\pymongocrypt\mongocrypt.py”, line 296, in _ del _
File “C:\git\insights\venv\lib\site-packages\pymongocrypt\mongocrypt.py”, line 292, in close
AttributeError: ‘NoneType’ object has no attribute ‘mongocrypt_destroy’

Thanks for reporting this issue. We’re tracking this issue in https://jira.mongodb.org/browse/PYTHON-3530. Please follow the jira ticket for updates.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.