Re: Python C-library import paths

2022-04-02 Thread Wookey
On 2022-04-02 16:04 +0100, Simon McVittie wrote: > On Sat, 02 Apr 2022 at 12:55:37 +0100, Wookey wrote: > > On 2022-04-01 00:30 -0400, M. Zhou wrote: > > > They have written > > > their own ffi loader, so I think it is an upstream bug. The upstream > > > should detect and add multiarch directory to

Re: Python C-library import paths

2022-04-02 Thread Simon McVittie
On Sat, 02 Apr 2022 at 12:55:37 +0100, Wookey wrote: > On 2022-04-01 00:30 -0400, M. Zhou wrote: > > They have written > > their own ffi loader, so I think it is an upstream bug. The upstream > > should detect and add multiarch directory to the paths. > > A correct implemntation really should use t

Re: Python C-library import paths

2022-04-02 Thread Wookey
On 2022-04-01 00:30 -0400, M. Zhou wrote: > On Fri, 2022-04-01 at 02:32 +0100, Wookey wrote: > > > > > > So it tries quite hard to find it, but doesn't know about multiarch > > and thus fails to look in the right place: > > /usr/lib//   (/usr/lib/x86_64-linux-gnu/ on this box) > > dlopen should

Re: Python C-library import paths

2022-03-31 Thread M. Zhou
On Fri, 2022-04-01 at 02:32 +0100, Wookey wrote: > > RuntimeError: Cannot find the files. > List of candidates: > /home/wookey/bin/libtvm.so > /usr/local/bin/libtvm.so > /usr/bin/libtvm.so > /bin/libtvm.so > /usr/local/games/libtvm.so > /usr/games/libtvm.so > /usr/lib/python3/dist-packages/tvm/lib

Python C-library import paths

2022-03-31 Thread Wookey
I am packaging apache tvm. It builds a C-library libtvm.so (and libtvm_runtime.so). It also has a python interface which is how most people use it, so I've built that into python3-tvm It has a /usr/bin/tvmc which fails if you run it due to not being able to find the installed c-libraries. I ha