code-transformer icon indicating copy to clipboard operation
code-transformer copied to clipboard

Error when compute asts from code2seq dataset on stage 1

Open suncici opened this issue 2 years ago • 1 comments

I encountered a problem when executing the command . Does anyone know how to solve it? image

suncici avatar Apr 13 '23 12:04 suncici

Hi,

looks like you are running the script from a Windows machine. PYTHONPATH is not recognized as an internal or external comand This particular error is easy to fix: https://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-so-it-finds-my-modules-packages

However, we compiled semantic (which you need for stage1 preprocessing) on a Linux machine, so you won't be able to use our pre-compiled AST parser. Also, I am not sure if semantic can be built on Windows at all. See this old issue in the semantic repo: https://github.com/github/semantic/issues/18

You probably need a Linux machine to run stage1 preprocessing.

Best, Tobias

tobias-kirschstein avatar Apr 13 '23 13:04 tobias-kirschstein