Couldn't apply path mapping to the remote file.

已回答

Couldn't apply path mapping to the remote file. /home/pc/anaconda3/envs/MTNet/lib/python3.9/site-packages/torch/nn/modules/module.py can't be found in project. You can continue debugging, but without the source. To fix that you can do one of the following:


I use pycharm professional version to debug my code on server with ssh connection, and I debug my code with the problem above. I have checked the document module.py is there, please tell me how to fix my bug

0

Please help me solve the problem, I am in urgent!!!

0

Are you using the latest PyCharm 2024.2.4? This may occur in case you're using an outdated version.

Due to the urgency mentioned, the easiest way to check if this can be  solved quickly is to:

1. Update PyCharm to the latest version.

2.  Delete the interpreter from IDE, including its associated deployment. 

3. Delete ~/.pycharm_helpers folder from the remote host 

4. Recreate the interpreter with new deployment and leave default path mappings if possible. 

Does it fail with the same error?

0

OK, actually, I use auto detect to solve my problem, and it's because of I Update PyCharm to the latest version, delete the interpreter from IDE, including its associated deployment, delete ~/.pycharm_helpers folder from the remote host, recreate the interpreter with new deployment and leave default path mappings if possible. You are right.

0

Howerver, here is a nother problem, on the state of ssh connection, the tensor can not be seen in data view, when I tap on the view as array, the region of data view is empty, and if it's in the run state of my pc, not ssh server, I can see the data view for tensor data. By the way, I can see other structure of data, like dataframe or list.

0

请先登录再写评论。