Open rynbrd opened 2 years ago
I am experiencing the same issue. Any update here? Platform version 1.0.6 arduino-cli version 0.23.0 (tested also 0.22.0 and 0.21.0)
Same here. I'm using Arduino IDE 2.0.0-rc9.2 and get the same:
Tool Longan:arm-none-eabi-gcc@9-2019q4 already installed Tool Longan:bossac@1.9.2 already installed Tool arduino:openocd@0.10.0-arduino7 already installed Tool Longan:CMSIS@5.4.0 already installed Tool Longan:CMSIS-Atmel@1.2.1 already installed Tool arduino:arduinoOTA@1.2.1 already installed Downloading packages Installing platform Longan:samd@1.0.6 Failed to install platform: Longan:samd. Error: 13 INTERNAL: Cannot install platform: installing platform Longan:samd@1.0.6: extracting archive: open /home/andrea/.arduino15/tmp/package-2801912397: is a directory
Any solution?
Did you find any solutions for this? Same problem here.
Installing platform Longan:samd@1.0.6
Failed to install platform: Longan:samd.
Error: 13 INTERNAL: Cannot install platform: installing platform Longan:samd@1.0.6: extracting archive: open C:\Users\jkpho\AppData\Local\Arduino15\tmp\package-1310672429: is a directory
Version: 2.0.2
Date: 2022-11-17T11:54:56.612Z
CLI Version: 0.29.0 [76251df9]
I was never able to fix it using the cli. It works in the IDE for me. I have not tried 2.0, however. I've been reluctant to upgrade out of concern for breaking something. It seems that was a well founded concern.
Same here. Anyone found a solution?
I encountered a similar issue when trying to install Longan:samd@1.0.6
using the Arduino CLI, and I resolved it by manually installing the platform.
The error in the log was:
ERRO[0000] Cannot install platform error="installing platform Longan@1.0.6: extracting archive: open C:\Users\<username>\AppData\Local\Arduino15\tmp\package-3407861911: is a directory" platform="Longan@1.0.6"
The tools (e.g., arm-none-eabi-gcc
, bossac
, etc.) were already installed, but the issue was with extracting and installing the platform itself.
Manually Download the Platform Archive:
Create the Required Directory:
C:\Users\<username>\AppData\Local\Arduino15\packages\Longan\hardware\samd\
.The final path should look like:
C:\Users\<username>\AppData\Local\Arduino15\packages\Longan\hardware\samd\1.0.6\
Extract the Archive:
1.0.6
folder. Make sure it contains files like boards.txt
, platform.txt
, and other required files/folders such as variants
, cores
, etc.Restart Arduino CLI:
arduino-cli core list
The tools (like arm-none-eabi-gcc
, bossac
, etc.) were already installed, as indicated in the log:
Tool Longan
@9-2019q4 already installed Tool Longan
@1.9.2 already installed Tool arduino
@0.10.0-arduino7 already installed Tool Longan
@5.4.0 already installed Tool Longan
@1.2.1 already installed Tool arduino
@1.2.1 already installed
Therefore, no need to reinstall these tools manually.
This process successfully resolved the issue, and I could now use the platform as expected.
Hope this helps others facing the same problem!
I receive an error when attempting to install the samd platform: