Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when compute asts from code2seq dataset on stage 1 #28

Open
suncici opened this issue Apr 13, 2023 · 1 comment
Open

Error when compute asts from code2seq dataset on stage 1 #28

suncici opened this issue Apr 13, 2023 · 1 comment

Comments

@suncici
Copy link

suncici commented Apr 13, 2023

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

@tobias-kirschstein
Copy link
Collaborator

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: github/semantic#18

You probably need a Linux machine to run stage1 preprocessing.

Best,
Tobias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants