Reputation: 2354
I've got a project. Pycharm reports unresolved references, even though the code using these "unresolved" references works just fine.
I've tried invalidate cachces/restart, Mark directory as Project root - nothing works. The funny thing is that is happened after pycharm restart. I just restarted my IDE and got the issue.
From this picture it can be seen that all directories and init.py files are indeed in place.
Upvotes: 0
Views: 514
Reputation: 4122
If you are using Python 3 you should do it:
from .items import SingleIssueItem
Upvotes: 0
Reputation: 3899
It seems there are two nested folders of the same name: EchoMskCrawler. And pycharm is getting confused. Also, you only need to put:
from items import....
because they are in the same directory
Upvotes: 1