arrayfire / arrayfire/arrayfire-python

Linking to Anaconda environment in Ubuntu

オープン
#223 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
422
フォーク
63
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi.

Is there a guide on how to direct the Arrayfire installation to an Anaconda environment? I saw a couple of issues here, but they were based on Windows and Mac OS. I'm working with Ubuntu 19.10.

If I try to import Arrayfire in Python I get the following:

```
>>> import arrayfire
Traceback (most recent call last):
File "", line 1, in
File "/home/mario/anaconda3/lib/python3.7/site-packages/arrayfire/__init__.py", line 56, in
from .library import *
File "/home/mario/anaconda3/lib/python3.7/site-packages/arrayfire/library.py", line 643, in
backend = _clibrary()
File "/home/mario/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.
Please look at https://github.com/arrayfire/arrayfire-python/wiki for more information.

```
You can see that it's trying to look for Arrayfire in the `anaconda3` folder, and it is obviously failing because my Arrayfire installation is in `/opt/arrayfire/`.

Any pointers to how I can fix this?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with the Python import path in arrayfire/__init__.py and the library-loading code in arrayfire/library.py, then read the linked ArrayFire Python wiki. Reproduce the import failure in the Ubuntu 19.10 Anaconda environment and document the supported setup; done means the guide lets users load ArrayFire from /opt/arrayfire without the RuntimeError.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
anaconda, python, ubuntu
領域
developer-experience, documentation
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。