Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5751

[Packaging][Python] Python macOS wheels have dynamic dependency on libcares

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.14.0
    • None

    Description

      I'm afraid while https://github.com/apache/arrow/pull/4685 fixed the macOS wheels for python 3, but the python 2.7 wheel is still broken (with a different error):

      ImportError: dlopen(/Users/pcmoritz/anaconda3/lib/python3.6/site-packages/pyarrow/lib.cpython-36m-darwin.so, 2): Library not loaded: /usr/local/opt/c-ares/lib/libcares.2.dylib
      
        Referenced from: /Users/pcmoritz/anaconda3/lib/python3.6/site-packages/pyarrow/libarrow_python.14.dylib
      
        Reason: image not found

      I tried the same hack as in https://github.com/apache/arrow/pull/4685 for libcares but it doesn't work (removing the .dylib fails one of the earlier build steps). I think the only way to go forward on this is to compile grpc ourselves. My attempt to do this in https://github.com/apache/arrow/compare/master...pcmoritz:mac-wheels-py2 fails because OpenSSL is not found even though I'm specifying the OPENSSL_ROOT_DIR (see https://travis-ci.org/pcmoritz/crossbow/builds/550603543). Let me know if you have any ideas how to fix this!

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              pcmoritz Philipp Moritz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m