Python – Fixing 'module' object has no attribute '…'

Little tip, If you’re getting this error in Python and you have no idea why, check for circular imports. That’s what the problem was for me.

A circular import is for example module A imports module B and module B imports module A. There are certain scenarios where this doesn’t work. (More reading here, and here.)

Comments are closed.