I’m cross compiling TVM for Raspberry Pi 4. I do the same as the tutorials on tvm document:
- Clone tvm on remote device (Rasp 4)
- Build the TVM runtime
- Set environment variable for remote device
- Start an RPC server
So when I run this command:
python -m tvm.exec.rpc_server --host 0.0.0.0 --port=9090
This error show up: Traceback (most recent call last): File “”, line 189, in _run_module_as_main File “”, line 112, in _get_module_details File “/Documents/Khang/tvm_rasp4/tvm/python/tvm/init.py”, line 25, in from .base import TVMError, version, _RUNTIME_ONLY File “/Documents/Khang/tvm_rasp4/tvm/python/tvm/base.py”, line 65, in from .ffi import registry as _tvm_ffi_registry File “/Documents/Khang/tvm_rasp4/tvm/python/tvm/ffi/init.py”, line 23, in from .registry import register_object, register_func, get_global_func, _init_api File “/Documents/Khang/tvm_rasp4/tvm/python/tvm/ffi/registry.py”, line 19, in from . import core ImportError: cannot import name ‘core’ from partially initialized module ‘tvm.ffi’ (most likely due to a circular import) (/Documents/Khang/tvm_rasp4/tvm/python/tvm/ffi/init.py)
I’m also new to python so I don’t know where is the root cause of this. Please help me resolve this. Thank you.