# Import tvm error, initialized module 'tvm\_ffi' (most likely due to a circular import)

**URL:** <https://discuss.tvm.apache.org/t/import-tvm-error-initialized-module-tvm-ffi-most-likely-due-to-a-circular-import/18916>\
**Category:** Troubleshooting\
**Created:** [February 2, 2026, 2:37pm UTC](https://discuss.tvm.apache.org/t/import-tvm-error-initialized-module-tvm-ffi-most-likely-due-to-a-circular-import/18916 "2026-02-02T14:37:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shujuliu818](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@shujuliu818](https://discuss.tvm.apache.org/u/shujuliu818)\
**Post date:** [February 2, 2026, 2:37pm UTC](https://discuss.tvm.apache.org/t/import-tvm-error-initialized-module-tvm-ffi-most-likely-due-to-a-circular-import/18916/1 "2026-02-02T14:37:42Z")

</div>

hello: when i do as “install from source”, there are some error.

when i exe ’ python -c “import tvm; print(tvm.base.\_LIB)”’ there are some error: Traceback (most recent call last): File “”, line 1, in import tvm; print(tvm.base.\_LIB) ^^^^^^^^^^ File “/home/ll/tvm/python/tvm/ **init**.py”, line 24, in from tvm\_ffi import register\_object, register\_global\_func, get\_global\_func File “/home/ll/tvm/3rdparty/tvm-ffi/python/tvm\_ffi/ **init**.py”, line 38, in from .registry import ( …\<6 lines\>… ) File “/home/ll/tvm/3rdparty/tvm-ffi/python/tvm\_ffi/registry.py”, line 25, in from . import core ImportError: cannot import name ‘core’ from partially initialized module ‘tvm\_ffi’ (most likely due to a circular import) (/home/ll/tvm/3rdparty/tvm-ffi/python/tvm\_ffi/ **init**.py)

i don’t know what happend,an how to cover this

---

<div class="post-metadata">

**Author:** ![tambax56](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/tambax56/32/6156_2.png) [@tambax56](https://discuss.tvm.apache.org/u/tambax56)\
**Post date:** [March 20, 2026, 12:55pm UTC](https://discuss.tvm.apache.org/t/import-tvm-error-initialized-module-tvm-ffi-most-likely-due-to-a-circular-import/18916/2 "2026-03-20T12:55:42Z")

</div>

I’m having the same problem. Has it been resolved?
