-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
WindowsError: [Error 5] Access is denied #2
Comments
I haven't tried running it in windows, I'll spin up a VM later today and see what I can do |
I changed the way the temp files are being used, can you try again and see if you still get the error? Neither repository is throwing exceptions for me currently. |
I'm still getting the access is denied
|
The problem is in the git module, it's holding open the file handles and I've found no way to close them without monkeypatching the git module. I work around the problem by not bothering to delete the temporary directories:
|
its a combination of holding the directory open and shutil.rmtree() not being able to remove read only files. The pr should fix both issues. |
Just cloned the repo and started it in cygwin. I get this error:
|
I did not test in cygwin, but i'm having trouble installing the dependencies in cygwin with having them installed outside of cygwin. Could you, @leozulfiu, please test my PR #15 to see if it fixes your issue? |
closing bc I think #15 took care of this |
I am still facing this issue when deleting directory via python in windows
|
Currently having the same issue against a local repo. |
This is still happening for me on linux. |
[chore] Embed scopes at compile time
Traceback (most recent call last): File "trufflehog.py", line 106, in <module> find_strings(args.git_url) File "trufflehog.py", line 98, in find_strings shutil.rmtree(project_path) File "C:\Python27\lib\shutil.py", line 247, in rmtree rmtree(fullname, ignore_errors, onerror) File "C:\Python27\lib\shutil.py", line 247, in rmtree rmtree(fullname, ignore_errors, onerror) File "C:\Python27\lib\shutil.py", line 247, in rmtree rmtree(fullname, ignore_errors, onerror) File "C:\Python27\lib\shutil.py", line 252, in rmtree onerror(os.remove, fullname, sys.exc_info()) File "C:\Python27\lib\shutil.py", line 250, in rmtree os.remove(fullname) WindowsError: [Error 5] Access is denied: 'temp\\[uuid]\\.git\\objects\\pack\\pack-[uuid].idx'
When scanning some repos. (This one crashes half way through, This one crashes at startup)
The text was updated successfully, but these errors were encountered: