robomics opened a new issue, #44227: URL: https://github.com/apache/arrow/issues/44227
### Describe the enhancement requested Consider the following scenario: ```bash # Create a venv and install some version of pyarrow python3 -m venv /tmp/venv /tmp/venv/bin/pip install pyarrow==16 # Create symlinks to versioned libs /tmp/venv/bin/python -c 'import pyarrow; pyarrow.create_library_symlinks()' ls -lah /tmp/venv/lib/python*/site-packages/pyarrow/*.so # The above should list several symlinks, such as # /tmp/venv/lib/python3.12/site-packages/pyarrow/libarrow.so -> /tmp/venv/lib/python3.12/site-packages/pyarrow/libarrow.so.1600 # Update pyarrow /tmp/venv/bin/pip install pyarrow==17 # Try to update the symlinks /tmp/venv/bin/python -c 'import pyarrow; pyarrow.create_library_symlinks()' # This will result in an error, as the symlinks already exists (even though they are broken due to the update) ``` I think it would be more appropriate for `pyarrow.create_library_symlinks()` to detect and fix broken symlinks. ### Component(s) Python -- 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: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org