• Register
+2 votes
9 views

Problem:

I am new in python programming an I am using Jet Brains Pycharm IDE.
In pycharm I have program organized like:
 Sources
   |--__init__.py
   |--Additions
      |--__init__.py
      |--Add.py
   |--Collaboration
      |--__init__.py
      |--Colab.py
   |--Views
      |--__init__.py
      |--views.py
   |--Model
      |--__init__.py
      |--Models.py

But there is an warning that always appear:

Cannot find reference 'Add' in __init__.py

Why is this warning always appear please help

ago by (2.2k points)  

1 Answer

+2 votes

Answer:

Looks like this issue will pop up again if one use a remote environment in PyCharm, because PyCharm somehow forget to sync these *.pyi files to the local remote storage.
Solution: Manually mapping the local remote storage to the remote path, then sync *.pyifiles to local would solve these problem.

Plz spread this tip so nobody suffer from these annoying falsify inspection warning again

PyCharm has its share of small bugs like this, but in my opinion its benefits far outweigh its drawbacks. If you'd like to try another good IDE, there's also Spyder/Spyderlib.

You can locate the path to local storage at the Project View -> External Libraries -> Your Environment -> Remote Libraries, then right click and choose "Copy Path"

Please look out if there is any update in you IDE.

If this helps you let me know.

 

 

ago by (3.9k points)  
...