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

[Build Failure] could not load C extensions

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • 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?

      Name of Failure:

      cannot import name '_cmessage' from 'pymongo'

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_other_hosts_rhel9_fips_test_6.0_standalone_noauth_nossl_sync_1b89da4829945359ae99ecfb579104d2d28f7b27_24_12_04_16_53_27/logs?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      On some of the alternate hosts, there is no python or mongodb toolchain, and the system python does not support creating C extensions.

      Stack trace:

       [2024/12/05 10:07:04.775] cannot import name '_cmessage' from 'pymongo' (/data/mci/4ab0e43b55ce90b239265d76d8bcd957/src/pymongo/__init__.py)
       [2024/12/05 10:07:04.775] cannot import name '_cbson' from 'bson' (/data/mci/4ab0e43b55ce90b239265d76d8bcd957/src/bson/__init__.py)
       [2024/12/05 10:07:04.835] could not load C extensions
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: