Skip to content
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

RuntimeError: Could not load any ArrayFire libraries. #239

Open
luckydog1996 opened this issue Oct 15, 2020 · 3 comments
Open

RuntimeError: Could not load any ArrayFire libraries. #239

luckydog1996 opened this issue Oct 15, 2020 · 3 comments

Comments

@luckydog1996
Copy link

luckydog1996 commented Oct 15, 2020

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
Screenshot 2020-10-15 at 08 29 41

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.

Can anyone kindly explain why?

@pavanky
Copy link
Member

pavanky commented 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
Copy link

fuomag9 commented Nov 8, 2020

Same issue here, I've tried everything but it won't load them

@SujithChristopher
Copy link

Same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants