blink1073 commented on PR #13826:
URL: https://github.com/apache/arrow/pull/13826#issuecomment-1229054817

   Okay, I was able to use the recommended approach along with wheel repair, 
with one interesting 
[snag](https://github.com/blink1073/mongo-arrow/runs/8044467641?check_suite_focus=true).
  Because I am setting `DYLD_LIBRARY_PATH` before calling `delocate` on macos, 
the `pyarrow._json` module overshadows the optional one in the stdlib:
   
   ```python
   File 
"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/scanner.py",
 line 5, in <module>
         from _json import make_scanner as c_make_scanner
       File "pyarrow/_json.pyx", line 1, in init pyarrow._json
       File 
"/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-d7ri7rrm/cp310-macosx_x86_64/build/venv/lib/python3.10/site-packages/pyarrow/__init__.py",
 line 65, in <module>
   ```
   
   I was able to work around it my making sure that the appropriate 
`lib-dynload` folder was ahead of the `pyarrow` folder on `DYLD_LIBRARY_PATH`, 
but perhaps the module should be renamed in `pyarrow`?  I think we should close 
this pull request in favor of one that renames `pyarrow._json`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to