tambax56 opened a new issue, #18714:
URL: https://github.com/apache/tvm/issues/18714
I have successfully compiled version v0.23.0.rc0. I set the environment
variables as follows: export TVM_HOME=/path-to-tvm export
PYTHONPATH=$TVM_HOME/python:$TVM_HOME/ffi/python:$PYTHONPATH, but I encountered
a problem during use. See the image for the relevant log.
[REDACTED]@21200c0c8db9:/home/[REDACTED]/tvm/3rdparty/tvm-ffi/python/tvm_ffi$
export
declare -x CARGO_HOME="/opt/rust"
declare -x DEBIAN_FRONTEND="noninteractive"
declare -x HOME="/root"
declare -x HOSTNAME="21200c0c8db9"
declare -x OLDPWD="/home/[REDACTED]/tvm/3rdparty/tvm-ffi/python"
declare -x
PATH="/opt/sccache/venv/apache-tvm-py3.9/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/rust/bin:/opt/arm/gcc-aarch64-none-elf/bin"
declare -x PWD="/home/[REDACTED]/tvm/3rdparty/tvm-ffi/python/tvm_ffi"
declare -x PYTHONNOUSERSITE="1" # Disable .local directories from affecting
CI.
declare -x
PYTHONPATH="/home/[REDACTED]/tvm/python:/home/[REDACTED]/tvm/3rdparty/tvm-ffi/python"
declare -x RUSTUP_HOME="/opt/rust"
declare -x SHLVL="1"
declare -x TERM="xterm"
declare -x TVM_HOME="/home/[REDACTED]/tvm"
declare -x TVM_VENV="/venv/apache-tvm-py3.9"
declare -x USER="[REDACTED]"
[REDACTED]@21200c0c8db9:/home/[REDACTED]/tvm/3rdparty/tvm-ffi/python/tvm_ffi$
python -c "import tvm; print(tvm.file)"
Traceback (most recent call last):
File "", line 1, in
File "/home/[REDACTED]/tvm/python/tvm/init.py", line 24, in
from tvm_ffi import register_object, register_global_func, get_global_func
File "/home/[REDACTED]/tvm/3rdparty/tvm-ffi/python/tvm_ffi/init.py", line
36, in
LIB = libinfo.load_lib_ctypes("apache-tvm-ffi", "tvm_ffi", "RTLD_GLOBAL")
File "/home/[REDACTED]/tvm/3rdparty/tvm-ffi/python/tvm_ffi/libinfo.py", line
168, in load_lib_ctypes
lib_path: Path = _find_library_by_basename(package, target_name)
File "/home/[REDACTED]/tvm/3rdparty/tvm-ffi/python/tvm_ffi/libinfo.py", line
235, in _find_library_by_basename
dist: im.PathDistribution = im.distribution(package) # type:
ignore[assignment]
File "/usr/lib/python3.9/importlib/metadata.py", line 542, in distribution
return distribution_from_name(distribution_name)
File "/usr/lib/python3.9/importlib/metadata.py", line 196, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: apache-tvm-ffi
[REDACTED]@21200c0c8db9:/home/[REDACTED]/tvm/3rdparty/tvm-ffi/python/tvm_ffi$
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]