# Leaf package crashes during toolchain installation

**URL:** <https://forum.sierrawireless.com/t/leaf-package-crashes-during-toolchain-installation/25409>\
**Category:** FX30\
**Tags:** leaf\
**Created:** [October 31, 2021, 10:41am UTC](https://forum.sierrawireless.com/t/leaf-package-crashes-during-toolchain-installation/25409 "2021-10-31T10:41:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DamienH](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@DamienH](https://forum.sierrawireless.com/u/DamienH)\
**Post date:** [October 31, 2021, 10:41am UTC](https://forum.sierrawireless.com/t/leaf-package-crashes-during-toolchain-installation/25409/1 "2021-10-31T10:41:34Z")

</div>

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](http://fr.archive.ubuntu.com/ubuntu) impish InRelease

Hit:2 [fr.archive.ubuntu.com](http://fr.archive.ubuntu.com/ubuntu) impish-updates InRelease

Hit:3 [fr.archive.ubuntu.com](http://fr.archive.ubuntu.com/ubuntu) impish-backports InRelease

Hit:4 [Index of /ubuntu](http://security.ubuntu.com/ubuntu) impish-security InRelease

Hit:5 [https://downloads.sierrawireless.com/tools/debian](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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 31, 2021, 11:22am UTC](https://forum.sierrawireless.com/t/leaf-package-crashes-during-toolchain-installation/25409/2 "2021-10-31T11:22:36Z")

</div>

I tried to use swi\_vs\_support\_200304 in ubuntu 16, no problem is found to install swi-fx30-catm\_3.0.0.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/2/2620c989560b896fc0b5e6fc588240e123ea8521.jpeg)

---

<div class="post-metadata">

**Author:** ![DamienH](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@DamienH](https://forum.sierrawireless.com/u/DamienH)\
**Post date:** [October 31, 2021, 2:47pm UTC](https://forum.sierrawireless.com/t/leaf-package-crashes-during-toolchain-installation/25409/3 "2021-10-31T14:47:15Z")

</div>

Hi jyijyi,

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 31, 2021, 3:45pm UTC](https://forum.sierrawireless.com/t/leaf-package-crashes-during-toolchain-installation/25409/4 "2021-10-31T15:45:02Z")

</div>

What python version are you using

---

<div class="post-metadata">

**Author:** ![DamienH](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@DamienH](https://forum.sierrawireless.com/u/DamienH)\
**Post date:** [October 31, 2021, 3:56pm UTC](https://forum.sierrawireless.com/t/leaf-package-crashes-during-toolchain-installation/25409/5 "2021-10-31T15:56:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 31, 2021, 11:25pm UTC](https://forum.sierrawireless.com/t/leaf-package-crashes-during-toolchain-installation/25409/6 "2021-10-31T23:25:22Z")

</div>

Seems has problem om ubuntu20

> **[Installation leaf and build mangOH software](https://forum.mangoh.io/t/installation-leaf-and-build-mangoh-software/5622/6)**
>
> I think this it more a Linux issue. If you dont know, do not care. Thank you.

---

<div class="post-metadata">

**Author:** ![yicheng.yang](https://avatars.discourse-cdn.com/v4/letter/y/cdc98d/32.png) [@yicheng.yang](https://forum.sierrawireless.com/u/yicheng.yang)\
**Post date:** [October 22, 2022, 9:11am UTC](https://forum.sierrawireless.com/t/leaf-package-crashes-during-toolchain-installation/25409/7 "2022-10-22T09:11:29Z")

</div>

HI,

I’m trying to configure the developer environment on my raspberrypi but it always return this…

```nohighlight
  -> Execute: leaf profile create SWI-WP77
Current profile is now SWI-WP77
Profile SWI-WP77 created
  -> Execute: leaf profile config SWI-WP77 -p swi-wp77_2.0.0
  -> Execute: leaf profile sync SWI-WP77
Profile is out of sync
Packages to install: wp77-legato_18.09.2-201905040035, wp77-modem-image_11, wp77-legato-image_18.09.2-201905132306, wp77-linux-image_SWI9X06Y_02.22.12.00, wp77-image_2.0.0, swi-wp77_2.0.0
Total size: 181.7 MB
Do you want to continue? (Y/n)
ERROR:
  Profile provisioning interrupted
CAUSED BY:
  Unknown package swi-license_1.1
HINTS:
  check available packages with leaf search
  try leaf profile sync to resume
Command exited with 2
ERROR:
  Sub command failed: 'leaf profile sync SWI-WP77'
The terminal process "bash '-c', 'leaf --non-interactive setup -p swi-wp77_2.0.0'" terminated with exit code: 2.

```
