I ran into the same problem and found that someone had accidentally added a folder named logging
in the main directory. When Python tries to import logging
, it looks at that folder first, and since it’s empty, the import fails. Check your project structure to see if there’s a logging
folder in the main directory. If there is, rename or remove it, and that should fix the issue.