What can I do about “ImportError: Cannot import name X” or “AttributeError: … (most likely due to a circular import)”?

You have circular dependent imports. physics.py is imported from entity before class Ent is defined and physics tries to import entity that is already initializing. Remove the dependency to physics from entity module.

Leave a Comment