This problem has been driving me nuts. I am trying to import a class from a file in the same directory. PyCharm is giving me the "Unresolved reference" error.
ImportError: cannot import name 'MyClass'
env | grep PYTHONPATH
MyClass is defined in
pack/file.py, you need to import it as:
from pack.file import MyClass
Note that using names of Python built-in types (such as
file) for your own modules is a bad idea.