Why PyCharm underlines these imports:
from oauth2_helper import (_url, get_token, get_session)
from config import scope
as Unresolved reference
, but if I add dots in front:
from .oauth2_helper import (_url, get_token, get_session)
from .config import scope
I don't get the error underline in PyCharm, but when running my app from terminal, I get this error:
ModuleNotFoundError: No module named '__main__.oauth2_helper'; '__main__' is not a package
What do you think, why is this happening?