Hey all, I'm getting this error while trying to ru...
# general
g
Hey all, I'm getting this error while trying to run a PEX (the code runs ok outside of PEX)
OSError: libnvJitLink.so.12: cannot open shared object file: No such file or directory
This is the requirements section of the generated
PEX-INFO
Copy code
["certifi<2025.0.0,>=2024.6.2", "click<9.0.0,>=8.1.7", "clip", "flask-cors<5.0.0,>=4.0.1", "flask<4.0.0,>=3.0.3", "langchain-core<0.3.0,>=0.2.5", "langchain-openai<0.2.0,>=0.1.8", "pillow<11.0.0,>=10.3.0", "pymongo<5.0.0,>=4.7.3", "scikit-learn<2.0.0,>=1.5.0", "torch<3.0.0,>=2.3.1", "torchvision<0.19.0,>=0.18.1", "uvicorn<0.31.0,>=0.30.1", "webcolors<25.0.0,>=24.6.0"]
Note that clip is should come from https://github.com/openai/CLIP.git (not pypy clip) and I believe it does as the distribution is
clip-1.0-py3-none-any.whl
The PEX is packaged with
packed
layout, if that makes any difference. Can someone help, please?
1
b
I have this vague memory that setting https://www.pantsbuild.org/2.21/reference/targets/pex_binary#execution_mode to venv and maybe also https://www.pantsbuild.org/2.21/reference/targets/pex_binary#venv_site_packages_copies might help with ML libraries. Maybe it helps for you?
❤️ 1
g
Those settings did the trick, thanks a lot @broad-processor-92400!
👍 1