drsealks
drsealks

Reputation: 2354

Pycharm unresolved reference, even though the code using these "unresolved" references works just fine

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.

enter image description here

Upvotes: 0

Views: 514

Answers (2)

Paulo Victor
Paulo Victor

Reputation: 4122

If you are using Python 3 you should do it:

from .items import SingleIssueItem

Upvotes: 0

The4thIceman
The4thIceman

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

Related Questions