Pycharm: symlinks on Windows machine
Hello
I have pyCharm ComEdition 2019 installed on a Win10 machine and a project which is developed on Linux machines.
After I clone a project from git to my local repository it has some symlinks, for example file "CustomerFrames" contains string "/path/CustomerFrames" (link to a folder). By running interpreter I get a message like "No module named 'CustomerFrames' ". It seems that such symlinks cannot be correct interpreted under Windows.
Maybe there is something in Settings to make the interpreter recognize the folders in such symlinks?
Thanks
Artjom
Please sign in to leave a comment.
>By running interpreter I get a message like "No module named 'CustomerFrames'
You're running on the remote host, using SSH interpreter, right? If so, please try running the same code outside of IDE, e.g. by using SSH shell (with the same interpreter). Does it work?
No, I'm starting from IDE directly.
Perhaps it is more a problem of Git because the symlinks are converted in text files by clone.
My question was if Pycharm can interpret these files as symlinks in WIndows (with some settings for example).
Yes, PyCharm should handle symlinks, but it may vary from case to case. Sometime symlinks indeed cause issues.
You have mentioned
>I have pyCharm ComEdition 2019 installed on a Win10 machine and a project which is developed on Linux machines.
So I'm wondering if you created SSH interpreter in PyCharm and running the project on remote host? Or you're using the local interpreter to run on the local machine? In the latter case symlinks probably won't work if they were created on Linux originally.
I've already understood that the problem is not in PyCharm.
Thanks