-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
proper check for filename before calling subprocess #1485
Comments
@AverageS A tutorial to get started is in https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/FastText_Tutorial.ipynb |
The cpython |
@tmylk @prakhar2b |
@menshikh-iv Can I go ahead with this? |
@pratikmjoshi of course |
@menshikh-iv Just to clarify, fix #1501 did not solve this issue, right? Am I supposed to add an exception and error message for an incorrect filepath to the FastText directory, and should it indicate that the path be changed to the executable? What should the error message look like? I assume that I'll have to take care of the windows case as well. |
@pratikmjoshi #1501 solved this issue, but partially
|
@menshikh-iv Sorry, but I've been getting a bit confused with the code. In utils.py, is a function like this for path checking ok? The code is basically from #1501 , but I've added a check for amending the path depending on the platform. What will be the Windows equivalent of /usr/bin/ (I've just put C:\Users\ ,pretty sure that its incorrect)? Am I missing anything else? And at check_output.... |
@menshikh-iv After making the necessary changes, the respective error messages are raised as below: However, after entering the right path, I'm still getting this error on the notebook. Any advice? |
@pratikmjoshi about path ( Also, sometimes, wappers want to path to "folder" (and have hard-coded executable), please check, how it works for all wrappers (it's not so simple). |
Based on discussion here, we should properly check for filename before
process calls
inutils.check_output()
, and raise more intuitive exception and error message.cc @jayantj
The text was updated successfully, but these errors were encountered: