sherlock
sherlock copied to clipboard
PermissionError: Permission denied when writing the file
Hi there, newbie here. Please, may I get your advice on how to resolve this?
Traceback (most recent call last):
File "
Saw this reported in 2020 and tried what was provided in the comments. But not successful.
Thank you.
In Microsoft Windows, disable controlled folder access. or add Python to the list of permitted programs in Microsoft Windows for controlled folder access. I believe that is your problem. try it
@, try running the script with elevated privileges using sudo.
Specify a Different Output Directory:
If the current directory doesn't have the necessary write permissions, you can try specifying a different directory or providing a complete path where the script has permission to write.
That did it. I installed with sudo, so the Sherlock dir I was in was root root.
Thanks
Thank you, @Pasanlaksitha, for the helpful instructions to solve the problem.
Did the above instructions work for you as well, @valarietan?
Hi @Pasanlaksitha
Thank you for the advice. But I'm not able to follow the instructions as I'm on Macbook Air. I used sudo to install as well. Will appreciate if you can advise how to change the permission?
Thank you.
@valarietan, can you show the permissions you currently have in the directory and files of the cloned sherlock project?
Navigate to the base directory of sherlock and the sherlock package directory and use this command in both directories:
ls -l