maharris77 commented on issue #40088:
URL: https://github.com/apache/arrow/issues/40088#issuecomment-3194676690

   No change. I'm running into this with TF and pyarrow. It has cropped up for 
people across different packages; I don't have direct experience with tink or 
others. It's macOS specific, as explained here: 
https://github.com/apache/arrow/issues/33633
   
   ```python
   Python 3.13.5 | packaged by conda-forge | (main, Jun 16 2025, 08:24:05) 
[Clang 18.1.8 ] on darwin
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import os, sys
   >>> sys.setdlopenflags(os.RTLD_LOCAL | os.RTLD_NOW)
   >>> import tensorflow
   >>> import pyarrow  # aborts
   libc++abi: terminating due to uncaught exception of type 
std::__1::system_error: mutex lock failed: Invalid argument
   zsh: abort      python
   ```
   
   ```python
   Python 3.13.5 | packaged by conda-forge | (main, Jun 16 2025, 08:24:05) 
[Clang 18.1.8 ] on darwin
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import os, sys
   >>> sys.setdlopenflags(os.RTLD_LOCAL | os.RTLD_NOW)
   >>> import pyarrow
   >>> import tensorflow  # hangs
   [mutex.cc : 452] RAW: Lock blocking 0x600000968138   @
   
   ```
   
   I also tried just `sys.setdlopenflags(os.RTLD_LOCAL)`
   Similar thing happens on Python 3.12 with tensorflow 2.20, but not with 
tensorflow 2.19.
   I can't test Python 3.13 with tensorflow 2.19 because only 2.20 is supported 
for 3.13.
   


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to