Skip to content
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

Package install error: searching package root dir: no unique root dir in archive #150

Open
EstevanTH opened this issue Aug 30, 2023 · 2 comments

Comments

@EstevanTH
Copy link

EstevanTH commented Aug 30, 2023

Hey there,

I had an issue while installing the platform sduino:stm8, in any version (the current last version being 0.5).

Characteristics:

  • OS: Windows 11 x86-64
  • Arduino IDE 2.1.1

Installation failed with:

C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build>arduino-cli core install "sduino:stm8@0.5" --additional-urls "https://raw.githubusercontent.com/tenbaht/sduino/master/package_sduino_stm8_index.json"
Tool sduino:STM8Tools@2019.02.05 already installed
Tool sduino:sdcc@build.11242 already installed
Téléchargement des paquets...
sduino:stm8@0.5 sduino:stm8@0.5 déjà téléchargé
Installing platform sduino:stm8@0.5...
Error during install: Cannot install platform: installing platform sduino:stm8@0.5: searching package root dir: no unique root dir in archive, found 'C:\Users\xxx\AppData\Local\Arduino15\tmp\package-4125649767\STM8S_StdPeriph_Driver' and 'C:\Users\xxx\AppData\Local\Arduino15\tmp\package-4125649767\cores'

Opening the archive with 7-zip, I saw inside that the root directory inside of the tar archive is named .. This misled the installation procedure.

image

So I rebuilt the archive, putting all the content inside of a single root directory sduino-core-0.5. I modified my local package_sduino_stm8_index.json to make the size and the SHA-256 correspond with the new values. Hurray, it works!

image

C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build>arduino-cli core install "sduino:stm8@0.5" --additional-urls "package_sduino_stm8_index.json"
Tool sduino:STM8Tools@2019.02.05 already installed
Tool sduino:sdcc@build.11242 already installed
Téléchargement des paquets...
sduino:stm8@0.5 sduino:stm8@0.5 déjà téléchargé
Installing platform sduino:stm8@0.5...
Configuration de la plateforme....
Platform sduino:stm8@0.5 installed

Thank you!

Cheers ❤️

@cintix
Copy link

cintix commented Sep 13, 2023

I have the same issue on both my OSX and Windows 11

@mf0o
Copy link

mf0o commented Nov 29, 2023

Thanks Estevan.

Facing the same issue on macOS and Arduino IDE 2.2.1.
Thanks to your precise description I could replicate the fix fast and installed the package successfully.

Thank you a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants