amoeba commented on issue #3679:
URL: https://github.com/apache/arrow-adbc/issues/3679#issuecomment-3488534719

   macOS has blocked passing down DYLD_LIBRARY_PATH for some time but only for 
"restricted" binaries (this is part of what SIP does). I should see if someone 
the verification script is picking up the wrong Python. Here's my system 
python3 (which is restricted):
   
   ```console
   $ ls -lO /usr/bin/python3
   -rwxr-xr-x  78 root  wheel  restricted,compressed 118864 Sep 25 00:03 
/usr/bin/python3*
   $ DYLD_LIBRARY_PATH="osmenthe" /usr/bin/python3
   Python 3.9.6 (default, Aug  8 2025, 19:06:38)
   [Clang 17.0.0 (clang-1700.3.19.1)] on darwin
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import os
   >>> os.environ["DYLD_LIBRARY_PATH"]
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File 
"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/os.py",
 line 679, in __getitem__
       raise KeyError(key) from None
   KeyError: 'DYLD_LIBRARY_PATH'
   ```
   
   Here's my brew python3 (not restricted)
   
   ```console
   $ ls -lO (command -v python3)
   lrwxr-xr-x  1 bryce  admin  - 40 Oct 20 14:54 /opt/homebrew/bin/python3@ -> 
../Cellar/[email protected]/3.14.0/bin/python3
   $ DYLD_LIBRARY_PATH="osmenthe" python3
   Python 3.14.0 (main, Oct  7 2025, 09:34:52) [Clang 17.0.0 
(clang-1700.3.19.1)] on darwin
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import os
   >>> os.environ["DYLD_LIBRARY_PATH"]
   'osmenthe'
   ```


-- 
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