I have cloned a project called
pearl from GitHub, with top directory
pearl. The top directory is supposed to be the top Python module as well.
When trying to execute a test source file with
import pearl, PyCharm gives an error “ No module named 'pearl' ”
I have marked
pearl as a source root, but that has made no difference; I still get the same error.
What can possibly be wrong?
PS: I've created a simple project showing the same problem: