Learn how to solve circular imports in your Python code.

ImportError: Cannot import name from partially initialized module due to a circular import.

When modules reference each other, Python throws an ImportError. But if module-A needs module-B and module-B needs module-A...HOW CAN YOU SOLVE THIS? In this video, you get the answer.

Written by Loek van den Ouweland on 2024-02-05.
Questions regarding this artice? You can send them to the address below.