arrayfire / arrayfire/arrayfire-python
RuntimeError: Could not load any ArrayFire libraries.
- 主要语言
- Python
- 星标
- 422
- 派生
- 63
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
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?
贡献指南
这个仓库没有索引到贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- macos, python
- 领域
- hpc, operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100