-
Notifications
You must be signed in to change notification settings - Fork 44
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
Comments
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 ! |
It looks like it's being run on Win platform, which has a different shell than unix systems. The subprocess call will fail because While I cannot test on Win yet, I believe changing |
thank you
it doesn't work while changing to os.makedir(self._param_dir)
there is a FileExistError: 当文件存在时,无法创建该文件。: 'param/Word2VecMatrix
…---Original---
From: "Zi"<[email protected]>
Date: Wed, Jun 17, 2020 22:37 PM
To: "ziyin-dl/word-embedding-dimensionality-selection"<[email protected]>;
Cc: "Joey-la"<[email protected]>;"Comment"<[email protected]>;
Subject: Re: [ziyin-dl/word-embedding-dimensionality-selection] Error when executing in cmd (#19)
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.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
You'll want to do a git pull first. A PR fixing this issue had just been
merged earlier today.
…On Wed, Jun 17, 2020, 9:28 PM Joey-la ***@***.***> wrote:
thank you
it doesn't work while changing to os.makedir(self._param_dir)
there is a FileExistError: 当文件存在时,无法创建该文件。: 'param/Word2VecMatrix
---Original---
From: ***@***.***>
Date: Wed, Jun 17, 2020 22:37 PM
To: "ziyin-dl/word-embedding-dimensionality-selection"<
***@***.***>;
Cc: ***@***.***>;"Comment"<
***@***.***>;
Subject: Re: [ziyin-dl/word-embedding-dimensionality-selection] Error when
executing in cmd (#19)
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.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7IJUGDBPNT3Y4FD2LV2PDRXFUVJANCNFSM4LCZY7JA>
.
|
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.
turn on the cmd
go to the directory where the folder named 'data', 'config', and python script 'main.py' exist
execute what you wrote in ReadMe,
python -m main --file data/text8.zip --config_file config/word2vec_sample_config.yml --algorithm word2vec
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.
Thank you in advance!!!
The text was updated successfully, but these errors were encountered: