-
Notifications
You must be signed in to change notification settings - Fork 18
Need to set LD_LIBRARY_PATH for 1.3.13 #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, Thank you for reporting it. When you install I am able to replicate the issue in a venv where $ python3 -m venv umath_014_env
$ source umath_014_env/bin/activate
$ python -m pip install --index-url https://software.repos.intel.com/python/pypi mkl_fft
# Successfully installed intel-cmplr-lib-rt-2025.1.0 intel-cmplr-lib-ur-2025.1.0 intel-openmp-2025.1.0 mkl-2025.1.0
# mkl-service-2.4.2 mkl_fft-1.3.13 mkl_random-1.2.10 mkl_umath-0.1.4 numpy-1.26.4 tbb-2022.1.0 tbb4py-2022.1.0
# tcmlib-1.3.0 umf-0.10.0 >>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "~/umath_014_env/lib/python3.10/site-packages/numpy/__init__.py", line 446, in <module>
import mkl_umath
File "~/umath_014_env/lib/python3.10/site-packages/mkl_umath/__init__.py", line 34, in <module>
from ._ufuncs import *
ImportError: libintlc.so.5: cannot open shared object file: No such file or directory However, there is no issue in a venv where $ python3 -m venv umath_012_env
$ source umath_012_env/bin/activate
$ python -m pip install --index-url https://software.repos.intel.com/python/pypi mkl_fft mkl_umath==0.1.2
# Successfully installed intel-cmplr-lib-rt-2025.1.0 intel-cmplr-lib-ur-2025.1.0 intel-openmp-2025.1.0 mkl-2025.1.0
# mkl-service-2.4.2 mkl_fft-1.3.13 mkl_random-1.2.10 mkl_umath-0.1.2 numpy-1.26.4 tbb-2022.1.0 tbb4py-2022.1.0
# tcmlib-1.3.0 umf-0.10.0 >>> import mkl_umath, mkl_fft, mkl_random
>>> mkl_umath.__version__
'0.1.2'
>>> mkl_random.__version__
'1.2.10'
>>> mkl_fft.__version__
'1.3.13'
>>> import numpy
>>> numpy.ones(5)
array([1., 1., 1., 1., 1.]) We will look at it in more detail in |
I can confirm that with |
Hi!
0.1.4:
Although the code did not change between the versions, the newer build no longer includes relative RPATH entries like $ORIGIN/../.., which previously allowed the runtime linker to locate required shared libraries such as libintlc.so.5 bundled within the wheel. As a result, when using version 0.1.4, the interpreter fails to locate the library at runtime, leading to an ImportError. But it's a bit difficult to say what exactly the reason is. Something could have changed in the build environment or toolchain (e.g., conda-build, setuptools, patchelf, or auditwheel) rather than changes in the source code itself. There is an idea to update Cmake by adding |
Thanks @vtavana and @ekomarova! I don't think there's an issue using mkl_umath 0.1.2 for now. But I'm glad that you guys are working on a solution, thanks! 😊 I think it would be kind of annoying having to manage the library path manually in future releases 🙇 |
Hi, @jankrecke! We have released the fixed mkl_umath version 0.1.5. Now it works:
Please retest it again and we will close the issue 😊 |
It works! The problem is gone with I will close this issue, thanks again for your quick support 😊 |
Hello,
Until recently I have been using mkl_fft 1.3.11 on Ubuntu 24.04 and I could install it without issues with uv from the Intel index.
Relevant section from the
pyproject.toml
:and
uv.lock
:I accidentally updated to 1.3.13 after deleting my uv.lock file,
and now I get an error that culminates in
which can be fixed by
In general that's not a problem and can be handled in my Dockerfile.
But I'm surprised that there would be this change of behaviour from 1.3.11 to 1.3.13. Is that by design? Or am I missing something?
I thank you very much in advance and look forward to hearing from you! Please let me know if you need any more information.
The text was updated successfully, but these errors were encountered: