arrayfire / arrayfire/arrayfire-python

RuntimeError: Could not load any ArrayFire libraries.

Đang mở
#239 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
422
Fork
63
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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
import arrayfire as af
File "/Users/zetao/opt/anaconda3/lib/python3.7/site-packages/arrayfire/__init__.py", line 56, in
from .library import *
File "/Users/zetao/opt/anaconda3/lib/python3.7/site-packages/arrayfire/library.py", line 643, in
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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Reproduce the import in the reported conda environment using the macOS commands, then inspect arrayfire/__init__.py and arrayfire/library.py, especially the _clibrary() path that raises the error. Compare the command-line and Python environments; done means identifying a reproducible cause and documenting or testing a fix for loading the ArrayFire libraries.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
macos, python
Lĩnh vực
hpc, operating-systems
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.