-
-
Notifications
You must be signed in to change notification settings - Fork 799
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
WinError 5 Access is denied error thrown when installing a dependency #2844
Comments
After playing a little bit I was able to get around this issue by using WSL (Windows Subsystem for Linux). I installed PlatformIO CLI there and it works fine for the same project. Although it was a little problematic as
Finally what worked out was the magic super quick installer (but only with py2) which I should have tried in a first place. From WSL no errors occur and I'm able to install the entire dependency chain, though I'd love to be able to do this in Windows native(ish) shells 😉 |
I get the same errors (using PlatformIO 4.0.1b3), practically on installing every single dependency with I'm guessing the folder is active in this or some other process (we all know Windows doesnt like that, while Linux does), maybe the pio install command is trying to remove the temp folder while it is still set as working folder or the VSCode IntelliSense process is already running on that new folder and is keeping it occupied |
It looks like antivirus tools block build system. |
Please reopen if you still need help |
the problem still exist and no solution has been provided (at least the problem is reproducable in Windows with every installation) |
Yea, I'm still facing it every now and then. It's not caused by AV, as I have disabled it for a given directory and no result. My workaround for that was that I just bought win10 pro and used WSL to get around this. |
Do you use network drive? |
@ivankravets at least I do not use any network drive. I have also switched off, virus scanner, changed local disk-drives, changed directories, checked/opend permissions, trioed different pc's, new installations of vs code, python, 3.7, 3.8, , pio etc. etc. |
Could someone provide a remote session to debug this issue? If yes, please contact us https://platformio.org/contact |
Disabling my antivirus software did the trick for me. |
I delete all *.o file at build/uno/src. |
fcking hell how can nobody fix this access denied error? |
I've a similar error: |
Do you use antivirus tools? |
Yes, but I disabled the antivirus and checked all directories in "C:" if are availabled for all user. |
Could you remove |
I now have tried to move the .platformio folder to my c:/ dir. didn't work. And I tried to copy a .platformio folder to another pc that the projects build normally. |
Closing VS code solved it, lol. I had it open, and it was using PIO. Just close your stuff, worst case restart. |
What kind of issue is this?
PlatformIO Core.
If you’ve found a bug, please provide an information below.
Configuration
Operating system: Windows 10 (10.0.17763)
PlatformIO Version (
platformio --version
): PlatformIO, version 4.0.0Description of problem
I wanted to test how PIO handles dependencies before committing to it.
Whenever I install a dependency from GitHub repo (or full git url) the installation fails with:
Steps to Reproduce
platformio.ini
).pio lib install mlewand/Transformation
in the directory whereplatformio.ini
file is located.Actual Results
Installation fails with
PermissionError: [WinError 5] Access is denied: 'X:\\Users\\userName\\Documents\\PlatformIO\\Projects\\pio-test-lib2\\.pio\\libdeps\\esp32doit-devkit-v1\\_tmp_installing-syxlieim-package\\.git\\objects\\06\\3bd79ae35475237188c6fcfed3b97aa076600f'
, however the lib gets installed and renamed.I can also properly use the code in the project. But it seems to break the dep installation chain, e.g. adding
--save
will not add it inplatformio.ini
.Expected Results
Installation process should not throw an error and installation should continue.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Additional info
I checked the FAQ (solution 1, 2, 3) but none worked. Actually solution 1 is irrelevant in this case, as the problem happens for local packages dir.
Workaround available, see #2844 (comment).
The text was updated successfully, but these errors were encountered: