Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-55823

ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      In our runs on build 7.5.0-3830, we hit this issue.

      00:03:56.484 2023-03-03T17:51:20 [INFO] Running: /opt/couchbase/bin/couchbase-cli ip-family -c http://localhost:8091 -u Administrator -p password --set --ipv6

      00:03:57.435

      00:03:57.435 Fatal error: run() received nonzero return code 1 while executing!

      00:03:57.435

      00:03:57.435 Requested: /opt/couchbase/bin/couchbase-cli ip-family -c http://localhost:8091 -u Administrator -p password --set --ipv6

      00:03:57.435 Executed: /bin/bash -l -c "/opt/couchbase/bin/couchbase-cli ip-family -c http://localhost:8091 -u Administrator -p password --set --ipv6"

      00:03:57.435

      00:03:57.435 =============================== Standard output ===============================

      00:03:57.435

      00:03:57.435 Traceback (most recent call last):

      00:03:57.435   File "/opt/couchbase/lib/python/couchbase-cli", line 10, in <module>

      00:03:57.435     import cbmgr

      00:03:57.435   File "/opt/couchbase/lib/python/cbmgr.py", line 23, in <module>

      00:03:57.435     from cluster_manager import ClusterManager

      00:03:57.435   File "/opt/couchbase/lib/python/cluster_manager.py", line 19, in <module>

      00:03:57.435     from x509_adapter import X509Adapter, X509AdapterFactory

      00:03:57.435   File "/opt/couchbase/lib/python/x509_adapter.py", line 24, in <module>

      00:03:57.435     from cryptography import x509

      00:03:57.435   File "/opt/couchbase/lib/python/interp/lib/python3.9/site-packages/cryptography/x509/_init_.py", line 6, in <module>

      00:03:57.435     from cryptography.x509 import certificate_transparency

      00:03:57.435   File "/opt/couchbase/lib/python/interp/lib/python3.9/site-packages/cryptography/x509/certificate_transparency.py", line 10, in <module>

      00:03:57.435     from cryptography.hazmat.bindings._rust import x509 as rust_x509

      00:03:57.435 ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)

      00:03:57.435

      00:03:57.435 ================================================================================

      00:03:57.435

      00:03:57.435 Aborting.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jared.casey Jared Casey
            bo-chun.wang Bo-Chun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty