Can't Install toolchain-atmelavr

PlatformIO wants to upgrade atmelavr. I am unable to do this in Atom so I tried resolving the problem via the command line. I’ve deleted my .platformio file, and I’ve tried to run “platformio run” from powershell with and without admin privileges - neither work.

I am able to install atmelavr and tool-scons, but toolchain-atmelavr always fails.

Am I doing something wrong? I need to upload a code fix, and I’m stuck. Thanks.

PS C:\Users\Rob\Documents\GitHub\RPi_MQTT_Test_2> platformio run
***********************************************************************************************************************
If you like PlatformIO, please:
- follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
- star it on GitHub > https://github.com/platformio/platformio
- try PlatformIO IDE for IoT development > http://platformio.org/platformio-ide
- donate to keep PlatformIO alive! > http://platformio.org/donate
***********************************************************************************************************************

[12/05/16 22:08:08] Processing megaatmega2560 (platform: atmelavr, board: megaatmega2560, framework: arduino)
-----------------------------------------------------------------------------------------------------------------------
PlatformManager: Installing atmelavr
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
atmelavr @ 1.2.1 has been successfully installed!
PackageManager: Installing tool-scons @ >=2.3.0,<2.6.0
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Warning! Package Mirror: [Error 5] Access is denied
Looking for the another mirror...
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Warning! Package Mirror: [Error 5] Access is denied
Looking for the another mirror...
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
tool-scons @ 2.4.1 has been successfully installed!
PackageManager: Installing toolchain-atmelavr @ ~1.40902.0
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Warning! Package Mirror: [Error 5] Access is denied
Looking for the another mirror...
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Warning! Package Mirror: [Error 5] Access is denied
Looking for the another mirror...
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Warning! Package Mirror: [Error 5] Access is denied
Looking for the another mirror...
Error: Can not install 'toolchain-atmelavr' with version requirements '~1.40902.0' for your system 'windows_amd64'
PS C:\Users\Rob\Documents\GitHub\RPi_MQTT_Test_2>

How do you run Atom? Please don’t start it with Administrative priviledges. Try to remove ~/.platformio directory, close Atom, start again and run pio platform install atmelavr.

Thanks. I actually never launch Atom as administrator. I don’t recall having any issues like this in the past.

I followed your instructions, but it didn’t work. I get:

PlatformManager: Installing atmelavr
Downloading...
Unpacking...
Warning! Package Mirror: [Error 5] Access is denied
Looking for the another mirror...
Downloading...
Unpacking...
Warning! Package Mirror: [Error 5] Access is denied
Looking for the another mirror...
Error: Can not install 'atmelavr' with version requirements '*' for your system 'windows_amd64'

I tried again. I got a bit further (like last night). It refuses to install toolchain-atmelavr.

PS C:\Users\Rob\Documents\GitHub\RPi_MQTT_Test_2> pio platform install atmelavr
PlatformManager: Installing atmelavr
Downloading...
Unpacking...
atmelavr @ 1.2.1 has been successfully installed!
PackageManager: Installing toolchain-atmelavr @ ~1.40902.0
Downloading...
Unpacking...
Warning! Package Mirror: [Error 5] Access is denied
Looking for the another mirror...
Downloading...
Unpacking...
Warning! Package Mirror: [Error 5] Access is denied
Looking for the another mirror...
Downloading...
Unpacking...
Warning! Package Mirror: [Error 5] Access is denied
Looking for the another mirror...
Error: Can not install 'toolchain-atmelavr' with version requirements '~1.40902.0' for your system 'windows_amd64'

Can I please get some help with this?

I’m trying to install atmelavr.

I have deleted .platformio

I am running this command from the terminal window in Atom:

pio platform install atmelavr

atmelavr downloads, unpacks and installs. toolchain-atmelavr downloads. It tries to unpack, but I don’t think its succeeding. When it fails, it tries another mirror. It can never get beyond this step.

I am not running Atom as administrator.

I’m unable to work on my project - your help is greatly appreciated. I have contributed money to PlatformIO’s development. Thank you in advance.

The root cause of this issue was McAfee LiveSafe running on my system.

Many thanks to Ivan for helping me to sort this out.

2 Likes

wie andere ich die Toolchain is alles in englisch ,ich nur Deutsch

Was genau möchtest du auf Deutsch ändern? Die Sprache der IDE, also VSCode? Die Ausgaben von PlatformIO oder dem GCC Compiler?