fix-python icon indicating copy to clipboard operation
fix-python copied to clipboard

Does not work when a `.so` is not executable

Open GuillaumeDesforges opened this issue 1 year ago • 0 comments

Working with ChromaDB, it installs onnxruntime, however one of the compiled binaries in the wheel (.venv/lib/python3.11/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.cpython-311-x86_64-linux-gnu.so) is not executable.

It is a problem because fix-python tries to find .so files by first doing a find with flag -executable, so it does not patch it.

Workaround is to chmod such files manually and run fix-python again,

$ chmod +x .venv/lib/python3.11/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.cpython-311-x86_64-linux-gnu.so
$ fix-python --venv .venv

However there is no "failure" per se when running fix-python, so it can be considered a silent failure (which is very bad).

GuillaumeDesforges avatar Feb 07 '24 17:02 GuillaumeDesforges