-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fetch_archive_from_http: Permission Denied on Windows #709
Comments
@tholor how about having MacOS, Linux and Windows CI pipelines? I created issue #714 to handle CI related improvements. |
@Victor7095 Regarding your issue can I see that you are using write mode It seems your python process do not have required permission. Can you please pull latest code and try again or run code with admin privilege if possible. |
I tried opening VS Code as well WIndows Terminal as admin it still gives the Permission Denied error when running the code. I was passing write mode while trying to figure out the problem, I removed it but didn't change nothing. I also created a fresh new python enviroment and tried to install lastest code by following the tutorial command
On the previous code I sucessfully installed haystack with |
Not sure but to me it's looks like permission issue. Can you try please following snippet (directly downloading without tempfile and extracting) as suggested here https://stackoverflow.com/questions/9419162/download-returned-zip-file-from-url -
|
Yes, this is an annoying torch-specific thing on Windows: you need to add the |
The problem when fetching the file was resolved with this code 👍 But I'm having another problem. I'm going to explain now but it might be better to create antoher issue for that.
I also tried running elasticsearch in another terminal instead of starting it in python, but the error is the same:
It seems somehow that python try starting elasticsearch a second time |
Hello, I am having the same issue here concerning this RuntimeError with freeze_support(). It seems to me that for some reason the tutorial file is read again when the reader is initiated. Also does the same error with the FARMreader. I am running haystack on Windows 10, with farm==0.5.0 Thanks for your help ! |
Thank you for reporting this problem. I was able to reproduce it. It seems that it is caused by the squad processor’s multiprocessing code. It is specific to running the code on Windows. If I am not mistaken, right now the multiprocessing imports the calling module (your tutorial code) and tries to execute it for every subprocess. As you reported, consequently it tries to start elasticsearch multiple times and as a result, there are error messages "permission denied" and "failed to obtain node locks". Let me see how to fix this... |
You need to encapsulate your code/the tutorial code in a function, e.g.,
@Rob192 @Victor7095 Please let me know, if it works for you with this small change. Thank you. |
It worked perfectly! |
Great to hear that. 👍 Yes, I will update the tutorials accordingly and close the issue afterwards. |
Thank you very much for your help ! |
Describe the bug
It throws a Permission Denied error after downloading zip file from provided url and tries to write it on temp directory.
Error message
Expected behavior
Download the file and unzip it correctly
Additional context
Following official guide
Dependencies
To Reproduce
System:
The text was updated successfully, but these errors were encountered: