facebookresearch / TransCoder

Public release of the TransCoder research project https://arxiv.org/pdf/2006.03511.pdf
Other
1.69k stars 258 forks source link

AssertionError: failed to create symlink .....TransCoder/data/test_dataset/cpp-java-python.with_comments.XLM-syml/train.java.0.pth for file .../TransCoder/data/test_dataset/cpp-java-python.with_comments/java.train.with_comments.0.bpe.pth #53

Open sushantkumar007007 opened 2 years ago

sushantkumar007007 commented 2 years ago

I am running the preprocess pipeline, and I am getting this error.

AssertionError: failed to create symlink ...../TransCoder/data/test_dataset/cpp-java-python.with_comments.XLM-syml/train.java.0.pth for file ...../TransCoder/data/test_dataset/cpp-java-python.with_comments/java.train.with_comments.0.bpe.pth

Is anyone know how to solve this?

cadddr commented 1 year ago

I got around this issue by changing file_path to be relative to the directory where symlinks live. See this post: https://askubuntu.com/questions/1203938/what-does-it-mean-when-a-symbolic-link-symlink-is-red-in-ubuntu