You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dpctl installed into virtual env fails to import #1892
(pypi_venv) (py312) opavlyk@opavlyk-mobl:~/tmp$ python -c "import dpctl"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/opavlyk/tmp/pypi_venv/lib/python3.12/site-packages/dpctl/__init__.py", line 29, in <module>
from ._device_selection import select_device_with_aspects
File "/home/opavlyk/tmp/pypi_venv/lib/python3.12/site-packages/dpctl/_device_selection.py", line 20, in <module>
from ._sycl_device import SyclDevice, SyclDeviceCreationError
ImportError: libintlc.so.5: cannot open shared object file: No such file or directory
Executing patchelf --set-rpath '$ORIGIN:$ORIGIN/../../../' --force-rpath $VIRTUAL_ENV/lib/python3.12/site-packages/dpctl/*.cpython*.so fixes the problem, because it allows Python modules to find the dependent DPC++ runtime libraries in Python prefix's lib folder.
Activity
Merge pull request #1893 from IntelPython/support-redist-runpath