I am trying to set up PlatformIO in a work environment. The board I want to use is the Arduino Due with the arduino platform. I am using the python embedded environment with the package pip_system_certs installed (I installed this in the PlatformIO venv as well) to allow python to accept https responses with a custom certificate. With this setup the first initialization works without a visible problem.
The problem occurs if I now try to install a package, for example with pio pkg install --global --tool “platformio/toolchain-gccarmnoneeabi”. When the download is at around 70-75% it suddenly jumps to 100% and warns about the downloaded package size is not equal to the remote size. Then it finds another mirror and starts all over again without finishing the installation.
(penv) PS C:\Users\braeu001\.platformio\penv\Scripts> pio pkg install --global --tool "platformio/toolchain-gccarmnoneeabi"
Tool Manager: Installing platformio/toolchain-gccarmnoneeabi
Downloading [####################################] 100%
Tool Manager: Warning! Package Mirror: The size (123174473 bytes) of downloaded file 'toolchain-gccarmnoneeabi-windows_amd64-1.100301.220327.tar.gz' is not equal to remote size (165468219 bytes)
Tool Manager: Looking for another mirror...
Downloading [####################################] 100%
Tool Manager: Warning! Package Mirror: The size (123567689 bytes) of downloaded file 'toolchain-gccarmnoneeabi-windows_amd64-1.100301.220327.tar.gz' is not equal to remote size (165468219 bytes)
Tool Manager: Looking for another mirror...
Downloading [####################################] 100%
Tool Manager: Warning! Package Mirror: The size (123862601 bytes) of downloaded file 'toolchain-gccarmnoneeabi-windows_amd64-1.100301.220327.tar.gz' is not equal to remote size (165468219 bytes)
Tool Manager: Looking for another mirror...
Downloading [####################################] 100%
Tool Manager: Warning! Package Mirror: The size (122617417 bytes) of downloaded file 'toolchain-gccarmnoneeabi-windows_amd64-1.100301.220327.tar.gz' is not equal to remote size (165468219 bytes)
Tool Manager: Looking for another mirror...
Downloading [####################################] 100%
Tool Manager: Warning! Package Mirror: The size (123174473 bytes) of downloaded file 'toolchain-gccarmnoneeabi-windows_amd64-1.100301.220327.tar.gz' is not equal to remote size (165468219 bytes)
Tool Manager: Looking for another mirror...
Downloading [############------------------------] 35% 00:01:53
Aborted!
(penv) PS C:\Users\braeu001\.platformio\penv\Scripts>
I have already asked our IT department but they can’t find anything wrong on their side. Do you have any more suggestions to try?