numba / numba/pyculib

module 'numba.findlib' has no attribute 'get_lib_dir'

Open
#29 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
99
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Hi, I got this problem when I try to use pyculib.

`
>>> from pyculib import rand as curand
Traceback (most recent call last):
File "", line 1, in
File "/home/chenmh/anaconda3/envs/tensorflow/lib/python3.6/site-packages/pyculib/__init__.py", line 49, in
from . import blas, sparse, fft, rand, sorting
File "/home/chenmh/anaconda3/envs/tensorflow/lib/python3.6/site-packages/pyculib/sorting/__init__.py", line 1, in
from .radixsort import RadixSort
File "/home/chenmh/anaconda3/envs/tensorflow/lib/python3.6/site-packages/pyculib/sorting/radixsort.py", line 38, in
lib = load_lib('radixsort')
File "/home/chenmh/anaconda3/envs/tensorflow/lib/python3.6/site-packages/pyculib/sorting/common.py", line 24, in load_lib
libpath = os.path.join(findlib.get_lib_dir(), fullname)
AttributeError: module 'numba.findlib' has no attribute 'get_lib_dir'
`

following is the versions of pkgs

numba 0.44.1 py36h962f231_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pyculib 1.0.2 np113py36_2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
pyculib_sorting 1.0.0 8 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the import failure with the reported numba 0.44.1, pyculib 1.0.2, and pyculib_sorting 1.0.0 versions. Start in pyculib/sorting/common.py at the load_lib call shown in the traceback, then determine the compatible interface between pyculib and numba. Done means importing pyculib.rand no longer raises the missing get_lib_dir error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.