run-tests.sh could not load C extensions on some builds

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      task: test-enterprise-auth

       

      Link to task:

      https://evergreen.mongodb.com/task_log_raw/mongo_python_driver_auth_enterprise_rhel8_pypy3.10_auth_test_enterprise_auth_1c7a7fe9ec3119228bc7bf98f1f9de199a4f8f2c_24_11_20_19_47_28/0?type=T#L350

      Context of when and why the failure occurred:

      could not load C extensions

      Stack trace:

       

      [2024/11/20 15:07:03.367] + hatch config set dirs.data /data/mci/c9f6d1b2d7fc6a16c0013e39b772d0e1/src/.hatch/data
      [2024/11/20 15:07:03.606] Getting secrets: drivers/enterprise_auth... done.
      [2024/11/20 15:07:03.606] [dirs]
      [2024/11/20 15:07:03.606] data = "/data/mci/c9f6d1b2d7fc6a16c0013e39b772d0e1/src/.hatch/data"
      [2024/11/20 15:07:03.608] New setting:
      [2024/11/20 15:07:03.608] ++ pwd
      [2024/11/20 15:07:03.608] + hatch config set dirs.cache /data/mci/c9f6d1b2d7fc6a16c0013e39b772d0e1/src/.hatch/cache
      [2024/11/20 15:07:05.440] New setting:
      [2024/11/20 15:07:05.440] + run_hatch test:test-eg
      [2024/11/20 15:07:05.440] + python -m hatch run test:test-eg
      [2024/11/20 15:07:05.440] Creating environment: test
      [2024/11/20 15:07:14.025] Installing project in development mode
      [2024/11/20 15:07:14.025] Polling dependency state
      [2024/11/20 15:07:14.025] Checking dependencies
      [2024/11/20 15:07:14.108] + AUTH=auth
      [2024/11/20 15:07:14.108] + SSL=nossl
      [2024/11/20 15:07:14.108] + TEST_SUITES=
      [2024/11/20 15:07:14.108] + TEST_ARGS=
      [2024/11/20 15:07:14.108] + export PIP_QUIET=1
      [2024/11/20 15:07:14.108] + PIP_QUIET=1
      [2024/11/20 15:07:14.127] [dirs]
      [2024/11/20 15:07:14.128] cache = "/data/mci/c9f6d1b2d7fc6a16c0013e39b772d0e1/src/.hatch/cache"
      [2024/11/20 15:07:14.128] Sourcing secrets
      [2024/11/20 15:07:14.529] + export PIP_PREFER_BINARY=1
      [2024/11/20 15:07:14.529] + PIP_PREFER_BINARY=1
      [2024/11/20 15:07:14.529] + set +x
      [2024/11/20 15:07:14.529] could not load C extensions
      [2024/11/20 15:07:14.529] cannot import name '_cmessage' from 'pymongo' (/data/mci/c9f6d1b2d7fc6a16c0013e39b772d0e1/src/pymongo/__init__.py)
      [2024/11/20 15:07:14.529] cannot import name '_cbson' from 'bson' (/data/mci/c9f6d1b2d7fc6a16c0013e39b772d0e1/src/bson/__init__.py)
      [2024/11/20 15:07:14.542] + deactivate
      [2024/11/20 15:07:14.542] + '[' -n /data/mci/c9f6d1b2d7fc6a16c0013e39b772d0e1/drivers-tools/mongodb/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin:/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/node/bin:/opt/node/bin ']'
      [2024/11/20 15:07:14.542] + PATH=/data/mci/c9f6d1b2d7fc6a16c0013e39b772d0e1/drivers-tools/mongodb/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin:/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/node/bin:/opt/node/bin
      [2024/11/20 15:07:14.542] + export PATH
      [2024/11/20 15:07:14.542] + unset _OLD_VIRTUAL_PATH
      [2024/11/20 15:07:14.542] + '[' -n '' ']'
      [2024/11/20 15:07:14.542] + '[' -n /usr/bin/bash -o -n '' ']'
      [2024/11/20 15:07:14.542] + hash -r
      [2024/11/20 15:07:14.542] + '[' -n '' ']'
      [2024/11/20 15:07:14.542] + unset VIRTUAL_ENV
      [2024/11/20 15:07:14.542] + unset VIRTUAL_ENV_PROMPT
      [2024/11/20 15:07:14.542] + '[' '!' '' = nondestructive ']'
      [2024/11/20 15:07:14.542] + unset -f deactivate
      [2024/11/20 15:07:14.589] + rm -rf hatchenv-3755
      [2024/11/20 15:07:14.589] Command 'subprocess.exec' in function 'run enterprise auth tests' (step 3 of 3) failed: process encountered problem: exit code 1.
      [2024/11/20 15:07:14.589] Finished command 'subprocess.exec' in function 'run enterprise auth tests' (step 3 of 3) in 1m11.831341088s.
      [2024/11/20 15:07:14.589] Running task commands failed: running command: command failed: process encountered problem: exit code 1 

       

       

            Assignee:
            Jib Adegunloye
            Reporter:
            Jib Adegunloye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: