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

PyMongo Universal Wheels Are Improperly Compiled

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.13, 4.3
    • Affects Version/s: None
    • Component/s: None
    • None

      Our universal wheels are being built with -arch x86_64 (see example release task).

      This leads to the following error on an arm64 version of Python:

      from bson import _cbson
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      ImportError: dlopen(/tmp/conda_envs/689f08f3a45e4b72787256aa/lib/python3.10/site-packages/bson/_cbson.cpython-310-darwin.so, 0x0002): tried: '/tmp/conda_envs/689f08f3a45e4b72787256aa/lib/python3.10/site-packages/bson/_cbson.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))), '/private/tmp/conda_envs/689f08f3a45e4b72787256aa/lib/python3.10/site-packages/bson/_cbson.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))
      

       

       

            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: