Leaf package crashes during toolchain installation

Hi everybody,

I tried to get the SDK: swi-fx30-catm_3.0.0 installed.

No luck, the package always crash with exception:

leaf.core.error.LeafException: Error during install step for wp77-toolchain_SWI9X06Y_02.36.07.00-linux64 (command returned 1)

ERROR:

Profile provisioning interrupted

CAUSED BY:

Error during install step for wp77-toolchain_SWI9X06Y_02.36.07.00-linux64 (command returned 1)

See below for extensive log:
Any idea what is wrong there ?

Note: The package swi-fx30-catm_2.0.0 and swi-fx30-catm_1.0.0 produce similar error.
Only package I found to be OK for me: swi-wp77_1.0.0

BR. Damien



user@user-VirtualBox:~/Development/Legato/Workspace$ leaf profile sync

[DEBUG] Load leaf.plugins.leaf_plugins.setup from /usr/share/leaf/packages/leaf-plugins_1.0/setup.py

[DEBUG] Load leaf.plugins.leaf_plugins.update from /usr/share/leaf/packages/leaf-plugins_1.0/update.py

[DEBUG] Load leaf.plugins.leaf_plugins.shell from /usr/share/leaf/packages/leaf-plugins_1.0/shell.py

[DEBUG] Load leaf.plugins.leaf_plugins.completion from /usr/share/leaf/packages/leaf-plugins_1.0/completion.py

[DEBUG] Load leaf.plugins.leaf_plugins.version from /usr/share/leaf/packages/leaf-plugins_1.0/version.py

[DEBUG] Load leaf.plugins.swi_getsrc.getsrc from /usr/share/leaf/packages/swi-getsrc_1.1.190524/getsrc.py

[DEBUG] Load leaf.plugins.swi_leaf_legacy.feature from /usr/share/leaf/packages/swi-leaf-legacy_1.0.190429/feature.py

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_legato from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_legato.commands from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins/commands.py

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_legato.swi from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins/swi

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_lximage from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_lximage.commands from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins/commands.py

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_lximage.swi from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins/swi

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_lxtoolchain from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_lxtoolchain.commands from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins/commands.py

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_lxtoolchain.swi from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins/swi

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_sdk from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_sdk.commands from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins/commands.py

[DEBUG] Load leaf.plugins.swi_sdk_builder.build_sdk.swi from /usr/share/leaf/packages/swi-sdk-builder_4.3.191113/plugins/swi

Profile is out of sync

Packages to install: wp77-toolchain_SWI9X06Y_02.36.07.00-linux64, wp77-modem-image_14.1, fx30-catm-legato-image_19.11.5, fx30-catm-linux-image_R14.1.1.002, fx30-catm-image_3.0.0, swi-legato_1.4.191225, swi-vscode-support_200624, swi-fx30-catm_3.0.0

Total size: 445.6 MB

Do you want to continue? (Y/n)

Y

Run sync steps for swi-aptdeps-image_1.0

Run sync steps for swi-aptdeps-toolchain_1.0

Run sync steps for swi-license_1.2

Run sync steps for swi-verify-aptdeps_1.7.210909

Checking required apt packages.>> Checking libssl-dev

.>> Checking swicwe

.>> Checking swiflash

It is recommended to have the latest version of swiflash swicwe

sudo apt-get update && sudo apt-get install --upgrade -y swiflash swicwe

Do you want to execute this command (Y/n)? Y

[sudo] password for user:

Hit:1 fr.archive.ubuntu.com impish InRelease

Hit:2 fr.archive.ubuntu.com impish-updates InRelease

Hit:3 fr.archive.ubuntu.com impish-backports InRelease

Hit:4 Index of /ubuntu impish-security InRelease

Hit:5 https://downloads.sierrawireless.com/tools/debian release/ InRelease

Reading package lists… Done

Reading package lists… Done

Building dependency tree… Done

Reading state information… Done

swicwe is already the newest version (1.27).

swiflash is already the newest version (5.2).

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

All system dependencies are OK

Run sync steps for swi-verify-license_1.4.190813

License already accepted: sierra-v1

Downloading 8 package(s)

[1/8] Installing wp77-toolchain_SWI9X06Y_02.36.07.00-linux64

Run install steps for wp77-toolchain_SWI9X06Y_02.36.07.00-linux64

Configuring the toolchain for your environment, this may take a few minutes…

Error during installation: Error during install step for wp77-toolchain_SWI9X06Y_02.36.07.00-linux64 (command returned 1)

Traceback (most recent call last):

File “/usr/lib/python3/dist-packages/leaf/api/packages.py”, line 138, in __extract_artifact

self.__execute_steps(out.identifier, ipmap, StepExecutor.install, env=env)

File “/usr/lib/python3/dist-packages/leaf/api/packages.py”, line 326, in __execute_steps

se_func(se)

File “/usr/lib/python3/dist-packages/leaf/model/steps.py”, line 66, in install

self.__run_steps(self.__package.jsonget(JsonConstants.INSTALL), label="install")

File “/usr/lib/python3/dist-packages/leaf/model/steps.py”, line 80, in __run_steps

self.__execute(step, label)

File “/usr/lib/python3/dist-packages/leaf/model/steps.py”, line 100, in __execute

raise LeafException("Error during {label} step for {ip.identifier} (command returned {rc})".format(label=label, ip=self.__package, rc=rc))

leaf.core.error.LeafException: Error during install step for wp77-toolchain_SWI9X06Y_02.36.07.00-linux64 (command returned 1)

ERROR:

Profile provisioning interrupted

CAUSED BY:

Error during install step for wp77-toolchain_SWI9X06Y_02.36.07.00-linux64 (command returned 1)

HINT:

try leaf profile sync to resume

Traceback (most recent call last):

File “/usr/lib/python3/dist-packages/leaf/api/workspace.py”, line 273, in provision_profile

self.install_packages(profile.packages, env=self.build_pf_environment(profile))

File “/usr/lib/python3/dist-packages/leaf/api/packages.py”, line 269, in install_packages

ip = self.__extract_artifact(la, env, ipmap, keep_folder_on_error=keep_folder_on_error)

File “/usr/lib/python3/dist-packages/leaf/api/packages.py”, line 150, in __extract_artifact

raise e

File “/usr/lib/python3/dist-packages/leaf/api/packages.py”, line 138, in __extract_artifact

self.__execute_steps(out.identifier, ipmap, StepExecutor.install, env=env)

File “/usr/lib/python3/dist-packages/leaf/api/packages.py”, line 326, in __execute_steps

se_func(se)

File “/usr/lib/python3/dist-packages/leaf/model/steps.py”, line 66, in install

self.__run_steps(self.__package.jsonget(JsonConstants.INSTALL), label="install")

File “/usr/lib/python3/dist-packages/leaf/model/steps.py”, line 80, in __run_steps

self.__execute(step, label)

File “/usr/lib/python3/dist-packages/leaf/model/steps.py”, line 100, in __execute

raise LeafException("Error during {label} step for {ip.identifier} (command returned {rc})".format(label=label, ip=self.__package, rc=rc))

leaf.core.error.LeafException: Error during install step for wp77-toolchain_SWI9X06Y_02.36.07.00-linux64 (command returned 1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File “/usr/lib/python3/dist-packages/leaf/main.py”, line 59, in run_leaf

out = args.handler.safe_execute(args, uargs)

File “/usr/lib/python3/dist-packages/leaf/cli/base.py”, line 103, in safe_execute

return self.execute(args, uargs)

File “/usr/lib/python3/dist-packages/leaf/cli/commands/profile.py”, line 137, in execute

wm.provision_profile(profile)

File “/usr/lib/python3/dist-packages/leaf/api/workspace.py”, line 275, in provision_profile

raise ProfileProvisioningException(e)

leaf.core.error.ProfileProvisioningException: Profile provisioning interrupted

I tried to use swi_vs_support_200304 in ubuntu 16, no problem is found to install swi-fx30-catm_3.0.0.

Hi jyijyi,

Indeed, I think this is more something NOK with my installation than the Sierra package… could it be some missing packages?

What python version are you using

Hum, actually I got it working by creating a VM based on Ubuntu LTS 16.x , LTS 18.x and LTS 20.x - It did not work using an Ubuntu 21.x. I have to double check but I think the python is 3.8 on these releae.

Seems has problem om ubuntu20