arrayfire / arrayfire-python

Python bindings for ArrayFire: A general purpose GPU library.
https://arrayfire.com
BSD 3-Clause "New" or "Revised" License
416 stars 65 forks source link

RuntimeError: Could not load any ArrayFire libraries. #219

Closed ysnan closed 4 years ago

ysnan commented 4 years ago

I tried to install the arrayfire in my Linux workstation via pip install arrayfire. It successfully installed but was not able to import. When I tried to use import arrayfire, it showed:

Traceback (most recent call last): File "", line 1, in File "/home/ysnan/anaconda3/lib/python3.6/site-packages/arrayfire/init.py", line 56, in from .library import * File "/home/ysnan/anaconda3/lib/python3.6/site-packages/arrayfire/library.py", line 646, in backend = _clibrary() File "/home/ysnan/anaconda3/lib/python3.6/site-packages/arrayfire/library.py", line 622, in init raise RuntimeError("Could not load any ArrayFire libraries.\n" + more_info_str) RuntimeError: Could not load any ArrayFire libraries. Please look at https://github.com/arrayfire/arrayfire-python/wiki for more information.

It failed for both python 3.6 and python 2.7. Could you please help me check it out. Thank you!

9prady9 commented 4 years ago

Which version of ArrayFire (not python wrapper) do you have installed?

ysnan commented 4 years ago

Thank you for your prompt reply. It is my fault not to notice I need to install ArrayFire in advance😭 I will try it and if any problem occur I will ask again.

ysnan commented 4 years ago

Sorry to bother you again. I downloaded the ArrayFire binary file and installed it. But how can I link the ArrayFire with python wrapper? The instruction link in Post Installation section in README.md file has been missing. Thank you!

9prady9 commented 4 years ago

Sorry about that, we will soon fix that ( raised this issue https://github.com/arrayfire/arrayfire-python/issues/220).

The link most likely points to this section http://arrayfire.org/docs/installing.htm#Linux

On Mon, Feb 17, 2020 at 9:14 PM ysnan notifications@github.com wrote:

Sorry to bother you again. I downloaded the ArrayFire binary file and installed it. But how can I link the ArrayFire with python wrapper? The instruction link in Post Installation section in README.md file has been missing. Thank you!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arrayfire/arrayfire-python/issues/219?email_source=notifications&email_token=AAY6OOVJC4ESAEY64HKBBRTRDKWGJA5CNFSM4KWRZB5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL63MUY#issuecomment-587052627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAY6OOTUAEGSGR53ZFY3FWDRDKWGJANCNFSM4KWRZB5A .

-- Pradeep https://www.linkedin.com/in/pradeepgarigipati