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

   Got it. The use of `env` in the invocation of pytest must be running the 
command through a restricted binary. We can fix it by swapping it for an export 
I think. Here's a basic test that shows how env breaks things:
   
   ```console
   $ echo $DYLD_LIBRARY_PATH
   XXX
   
   ~/tmp/arrow-adbc-tmpdir/venv-wheel-3.10-arm64/bin
   $ ./python -c "import os; print(os.environ['DYLD_LIBRARY_PATH'])"
   XXX
   
   ~/tmp/arrow-adbc-tmpdir/venv-wheel-3.10-arm64/bin
   $ env FOO=bar ./python -c "import os; print(os.environ['DYLD_LIBRARY_PATH'])"
   Traceback (most recent call last):
     File "<string>", line 1, in <module>
     File 
"/Users/bryce/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/os.py",
 line 680, in __getitem__
       raise KeyError(key) from None
   KeyError: 'DYLD_LIBRARY_PATH'
   ```
   
   I'll put up a PR.


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