I have browsed the site for a while and the only occasions people had this error happening were in circular imports which I don't have as far as I understand what circular imports are? My imports are transitive though.
I have 3 files in the same folder:
packer.py
parser.py
statistics.py
packer.py
class Conversation:
....
class Message:
....
parser.py (module works, called all functions from itself without a problem)
from bs4 import BeautifulSoup
from packer import Conversation
from packer import Message
def writeFormatedLog():
....
def getConvs():
....
statistics.py
from parser import getConvs #this on its own runs without problems
getConvs() #throws ImportError: cannot import name 'getConvs'