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

Suggested pip command to install pymongocrypt does not work

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.10
    • Affects Version/s: 3.9
    • Component/s: Docs, Encryption
    • Labels:
      None

      The suggested pip command to install pymongocrypt does not work:

      >>> AutoEncryptionOpts()
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      TypeError: __init__() takes at least 3 arguments (1 given)
      >>> AutoEncryptionOpts({}, 'v.v')
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/Users/shane/venv27/lib/python2.7/site-packages/pymongo/encryption_options.py", line 116, in __init__
          "client side encryption requires the pymongocrypt library: "
      pymongo.errors.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']
      zsh: no matches found: pymongo[encryption]
      

      The message should say:

      python -m pip install 'pymongo[encryption]'
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: