Is there any way to add remote pythonpath?
Hey all. I want to describe situation at first.
1) I am using PyCharm 2.5.1 on my Windows 7
2) VirtualBox guest with Ubuntu 12.04 to work as development server, call it DevMachine.
3) On DevMachine I setup VirtualEnv and installed there all packages I need.
4) I configured remote intepreter in PyCharm to use virtual machine ~/.virtualenvs/{env}/bin/python
5) PyCharm devserver works without any error.
6) I store my project in shared folder called E:\Work\Django\{projects folders here} - it is resolved in virtual machine.
7) Shared folder to make PyCharm resolve path. In Run/Debug Configurations -> Path Mappings -> E:\Work\Django\project=/home/username/host/project
8) This setup works good, i make changes on local disk, it's automatically updated on virtual linux machine. After updates I upload it to my production server with mercurial.
Everything works fine, but in my editor window, if I want to use any package from remote "site-packages" folder, ends up with "unresolved reference..". Is there any way to make PyCharm resolve remote site-packages folder?
Please sign in to leave a comment.
Hmm. I've just notices, that PyCharm somehow resolved remote packages, and added it to local C:\Users\{username}\.PyCharm20\system\python_stubs\{number goes here} folder so now "unresolved references disappeared" (firstly there wasn't any site-package in "external libraries").
So, well done JetBrains! Your IDE is awesome, I even didn't get when it happened. By itself, or maybe "Code" -> "Optimize Imports" or "Code" -> "Reformat Code" done the job.. Anyway I am glad now :-)