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 executing in cmd #19

Open
bohyunshin opened this issue Mar 6, 2020 · 4 comments
Open

Error when executing in cmd #19

bohyunshin opened this issue Mar 6, 2020 · 4 comments

Comments

@bohyunshin
Copy link

Hi, first thank you for making python implementation for your paper.

When I executed package in cmd, I ran into an error.
My environment is windows 10, 64 bit and python 3.7.1

Let me tell you the steps how I executed.

  1. turn on the cmd

  2. go to the directory where the folder named 'data', 'config', and python script 'main.py' exist

  3. execute what you wrote in ReadMe,
    python -m main --file data/text8.zip --config_file config/word2vec_sample_config.yml --algorithm word2vec

  4. There was an error in 24 line in main.py; yaml.load(f)
    So I changed that code to yaml.safe_load(f) and I fixed that error

However, after I finished step 3, the following error appeared and I do not know at all how to fix it.

Could you please give me a help? It will be very helpful for getting your advice.

image

Thank you in advance!!!

@Joey-la
Copy link

Joey-la commented Jun 16, 2020

Hello, I have encountered the same error with you, but I haven't solved it yet. did you know the error reason, can you tell me ? Thanks a lot !

@ziyin-dl
Copy link
Owner

It looks like it's being run on Win platform, which has a different shell than unix systems. The subprocess call will fail because mdkir is not a valid Win shell command.

While I cannot test on Win yet, I believe changing
sp.check_output("mkdir -p {}".format(self._param_dir), shell=True)
to
os.makedirs(self._param_dir)
should resolve this issue.

@Joey-la
Copy link

Joey-la commented Jun 18, 2020 via email

@ziyin-dl
Copy link
Owner

ziyin-dl commented Jun 18, 2020 via email

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

3 participants