Longan-Labs / LONGAN-SAME-TOOLS

1 stars 2 forks source link

Error during install: Cannot install platform #1

Open rynbrd opened 2 years ago

rynbrd commented 2 years ago

I receive an error when attempting to install the samd platform:

$ arduino-cli core --additional-urls https://raw.githubusercontent.com/Longan-Labs/LONGAN-SAME-TOOLS/master/package_longan_samd_index.json install Longan:samd
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...
Longan:samd@1.0.4 already downloaded
Installing platform Longan:samd@1.0.4...
Error during install: Cannot install platform: installing platform Longan:samd@1.0.4: extracting archive: open /home/bluedragonx/.arduino15/tmp/package-460329280: is a directory
xgalma00 commented 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)

AndreaInverardi commented 2 years ago

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?

jussipu commented 1 year ago

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]
rynbrd commented 1 year ago

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.

janz1961 commented 1 year ago

Same here. Anyone found a solution?

TaVodic commented 1 month ago

Solution for Installing Longan:samd@1.0.6 Platform Manually

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.

Error in Log:

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.

Steps I Followed to Fix It:

  1. Manually Download the Platform Archive:

    • Locate and download the Longan:samd@1.0.6 platform archive from the package index or the relevant repository.
  2. Create the Required Directory:

    • Navigate to C:\Users\<username>\AppData\Local\Arduino15\packages\Longan\hardware\samd\.
    • If the directory structure doesn't exist, create it manually.

    The final path should look like: C:\Users\<username>\AppData\Local\Arduino15\packages\Longan\hardware\samd\1.0.6\

  3. Extract the Archive:

    • Extract the downloaded archive into the 1.0.6 folder. Make sure it contains files like boards.txt, platform.txt, and other required files/folders such as variants, cores, etc.
  4. Restart Arduino CLI:

    • After extracting the platform files, restart Arduino CLI and run:
      arduino-cli core list
    • The platform should now be recognized.

Note:

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!