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
RuntimeError: Could not load any ArrayFire libraries. #239
Hi, I am using MACOS, I have 1. Download and install binaries 2. pip install arrayfire 3. export DYLD_LIBRARY_PATH=/opt/arrayfire/lib:$DYLD_LIBRARY_PATH
It can be used with command line
But when I use the same conda environment and python VeM.py which is a script containing import arrayfire, it shows
Traceback (most recent call last):
File "/Users/zetao/Documents/code/edu/python_code/first_try/VEM_deblur.py", line 3, in <module>
import arrayfire as af
File "/Users/zetao/opt/anaconda3/lib/python3.7/site-packages/arrayfire/__init__.py", line 56, in <module>
from .library import *
File "/Users/zetao/opt/anaconda3/lib/python3.7/site-packages/arrayfire/library.py", line 643, in <module>
backend = _clibrary()
File "/Users/zetao/opt/anaconda3/lib/python3.7/site-packages/arrayfire/library.py", line 619, in __init__
raise RuntimeError("Could not load any ArrayFire libraries.\n" + more_info_str)
RuntimeError: Could not load any ArrayFire libraries.
Conda usually includes its own set of C++ and CUDA libraries which maybe different from your system ones. Perhaps arrayfire works with the system libs but not the Conda ones. Try running os.system(/path/to/libafcuda.so) and / or other arrayfire libraries.
Activity
pavanky commentedon Oct 15, 2020
Conda usually includes its own set of C++ and CUDA libraries which maybe different from your system ones. Perhaps arrayfire works with the system libs but not the Conda ones. Try running
os.system(/path/to/libafcuda.so)and / or other arrayfire libraries.fuomag9 commentedon Nov 8, 2020
Same issue here, I've tried everything but it won't load them
SujithChristopher commentedon Dec 20, 2022
Same issue here.