PyMongo Universal Wheels Are Improperly Compiled

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 3.13, 4.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: