Is it not possible to do it on WSL2? I have windows laptop.
abharati@fsdclient0598:/mnt/c/Users/abharati$ leaf --version
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
leaf version 2.4.0
abharati@fsdclient0598:/mnt/c/Users/abharati$
So far I am able to install leaf but I am facing error for installing WP7702 SDK.
abharati@fsdclient0598:/mnt/c/Users/abharati$ leaf --version
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
leaf version 2.4.0
abharati@fsdclient0598:/mnt/c/Users/abharati$ cd ~/leaf-wp7702
leaf setup -p swi-wp77_6.0.3
-bash: cd: /home/abharati/leaf-wp7702: No such file or directory
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Fetching remote legato-stable
Fetching remote legato-dev
Fetching remote swi
ERROR:
Can’t fetch remote swi
CAUSED BY:
Expecting value: line 1 column 1 (char 0)
HINTS:
please check your network connection,
or check the remote URL in leaf remote list,
or you can disable the remote with leaf remote disable swi
Cannot find workspace, initialize one in /mnt/c/Users/abharati? (Y/n)
n
ERROR:
Operation canceled by user
abharati@fsdclient0598:/mnt/c/Users/abharati$ cd ~
abharati@fsdclient0598:~$ pwd
/home/abharati
abharati@fsdclient0598:~$ mkdir -p ~/leaf-wp7702
abharati@fsdclient0598:~/leaf-wp7702$
abharati@fsdclient0598:~/leaf-wp7702$ pwd
/home/abharati/leaf-wp7702
abharati@fsdclient0598:~/leaf-wp7702$ leaf remote disable swi
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
abharati@fsdclient0598:~/leaf-wp7702$ leaf setup -p swi-wp77_6.0.3
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Cannot find workspace, initialize one in /home/abharati/leaf-wp7702? (Y/n)
Y
→ Execute: leaf init
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Workspace initialized /home/abharati/leaf-wp7702
No profile name given, the new profile will be automatically named SWI-WP77
→ Execute: leaf profile create SWI-WP77
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Current profile is now SWI-WP77
Profile SWI-WP77 created
→ Execute: leaf profile config SWI-WP77 -p swi-wp77_6.0.3
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
→ Execute: leaf profile sync SWI-WP77
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Profile is out of sync
Packages to install: wp77-legato_21.05.4-202509230336, wp77-toolchain_SWI9X06Y_03.00.15.03-linux64, wp77-modem-image_15.2.BP4, wp77-legato-image_21.05.4-202510160452, wp77-linux-image_SWI9X06Y_03.00.15.03, wp77-image_6.0.3, swi-legato_1.4.191225, swi-vscode-support_200624, swi-wp77_6.0.3
Total size: 545.8 MB
Do you want to continue? (Y/n)
Y
[100%] Downloading 99026f4-swi-license_1.2.leaf
Run install steps for swi-license_1.2
[100%] Downloading 5153acf-swi-verify-license_1.4.190813.leaf
Run install steps for swi-verify-license_1.4.190813
/usr/bin/leaf-version-compare:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
[100%] Downloading f2ee46c-swi-aptdeps-legato_1.0.leaf
Run install steps for swi-aptdeps-legato_1.0
[100%] Downloading 7f3adb0-swi-verify-aptdeps_1.7.210909.leaf
Run install steps for swi-verify-aptdeps_1.7.210909
/usr/bin/leaf-version-compare:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
[100%] Downloading d6f6fca-swi-aptdeps-toolchain_1.0.leaf
Run install steps for swi-aptdeps-toolchain_1.0
[100%] Downloading 7b66caa-swi-aptdeps-image_1.0.leaf
Run install steps for swi-aptdeps-image_1.0
Run sync steps for swi-aptdeps-image_1.0
Run sync steps for swi-aptdeps-legato_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
/usr/bin/leaf-version-compare:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Checking required apt packages…zip
.autoconf
.automake
Warning!
These packages were not found on the current distribution:
python-jinja2 swiflash swicwe
If the install fails, retry after have set LEAF_IGNORE_UNKNOWN_APT=1 env var.
In this case, these unknown dependencies will have to be installed manually.
You need to install some missing packages with command:
sudo apt-get update && sudo apt-get install automake autoconf zip python-jinja2 swiflash swicwe
Do you want to execute this command (Y/n)? Y
[sudo] password for abharati:
Get:1 https://downloads.sierrawireless.com/tools/debian release/ InRelease [1313 B]
Hit:2 Index of /ubuntu noble InRelease
Get:3 Index of /ubuntu noble-security InRelease [126 kB]
Get:4 Index of /ubuntu noble-updates InRelease [126 kB]
Get:5 https://downloads.sierrawireless.com/tools/debian release/ Packages [6148 B]
Get:6 Index of /ubuntu noble-backports InRelease [126 kB]
Get:7 Index of /ubuntu noble-updates/main amd64 Packages [1628 kB]
Get:8 Index of /ubuntu noble-security/main amd64 Packages [1349 kB]
Get:9 Index of /ubuntu noble-security/main Translation-en [221 kB]
Get:10 Index of /ubuntu noble-security/main amd64 Components [21.5 kB]
Get:11 Index of /ubuntu noble-security/main amd64 c-n-f Metadata [9448 B]
Get:12 Index of /ubuntu noble-security/universe amd64 Packages [915 kB]
Get:13 Index of /ubuntu noble-security/universe amd64 Components [71.4 kB]
Get:14 Index of /ubuntu noble-security/restricted amd64 Packages [2205 kB]
Get:15 Index of /ubuntu noble-updates/main amd64 Components [175 kB]
Get:16 Index of /ubuntu noble-updates/main amd64 c-n-f Metadata [15.7 kB]
Get:17 Index of /ubuntu noble-updates/universe amd64 Packages [1501 kB]
Get:18 Index of /ubuntu noble-security/restricted Translation-en [503 kB]
Get:19 Index of /ubuntu noble-security/restricted amd64 Components [208 B]
Get:20 Index of /ubuntu noble-security/multiverse amd64 Components [208 B]
Get:21 Index of /ubuntu noble-updates/universe Translation-en [304 kB]
Get:22 Index of /ubuntu noble-updates/universe amd64 Components [378 kB]
Get:23 Index of /ubuntu noble-updates/universe amd64 c-n-f Metadata [31.4 kB]
Get:24 Index of /ubuntu noble-updates/restricted amd64 Components [212 B]
Get:25 Index of /ubuntu noble-updates/multiverse amd64 Components [940 B]
Get:26 Index of /ubuntu noble-backports/main amd64 Components [7140 B]
Get:27 Index of /ubuntu noble-backports/universe amd64 Components [11.0 kB]
Get:28 Index of /ubuntu noble-backports/restricted amd64 Components [216 B]
Get:29 Index of /ubuntu noble-backports/multiverse amd64 Components [212 B]
Fetched 9733 kB in 9s (1135 kB/s)
Reading package lists… Done
W: https://downloads.sierrawireless.com/tools/debian/release/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package python-jinja2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python3-jinja2
E: Package ‘python-jinja2’ has no installation candidate
ERROR:
Profile provisioning interrupted
CAUSED BY:
Error while installing required packages (Error during sync step for swi-verify-aptdeps_1.7.210909 (command returned 100))
HINT:
try leaf profile sync to resume
Command exited with 2
ERROR:
Sub command failed: ‘leaf profile sync SWI-WP77’
abharati@fsdclient0598:~/leaf-wp7702$ export LEAF_IGNORE_UNKNOWN_APT=1
abharati@fsdclient0598:~/leaf-wp7702$ leaf profile sync SWI-WP77
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Profile is out of sync
Packages to install: wp77-legato_21.05.4-202509230336, wp77-toolchain_SWI9X06Y_03.00.15.03-linux64, wp77-modem-image_15.2.BP4, wp77-legato-image_21.05.4-202510160452, wp77-linux-image_SWI9X06Y_03.00.15.03, wp77-image_6.0.3, swi-legato_1.4.191225, swi-vscode-support_200624, swi-wp77_6.0.3
Total size: 545.8 MB
Do you want to continue? (Y/n)
export LEAF_IGNORE_UNKNOWN_APT=1
Do you want to continue? (Y/n)
leaf profile sync SWI-WP77
Do you want to continue? (Y/n)
Y
Run sync steps for swi-aptdeps-image_1.0
Run sync steps for swi-aptdeps-legato_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
/usr/bin/leaf-version-compare:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Checking required apt packages.swicwe
.swiflash
…zip
.autoconf
.automake
Warning!
These packages were not found on the current distribution:
python-jinja2
If the install fails, retry after have set LEAF_IGNORE_UNKNOWN_APT=1 env var.
In this case, these unknown dependencies will have to be installed manually.
You need to install some missing packages with command:
sudo apt-get update && sudo apt-get install automake autoconf zip swiflash swicwe
Do you want to execute this command (Y/n)? n
ERROR:
Profile provisioning interrupted
CAUSED BY:
Error while installing required packages (Error during sync step for swi-verify-aptdeps_1.7.210909 (command returned 2))
HINT:
try leaf profile sync to resume
abharati@fsdclient0598:~/leaf-wp7702$ sudo apt-get update
sudo apt-get install automake autoconf zip python3-jinja2
[sudo] password for abharati:
Hit:1 Index of /ubuntu noble InRelease
Hit:2 Index of /ubuntu noble-updates InRelease
Hit:3 Index of /ubuntu noble-backports InRelease
Hit:4 https://downloads.sierrawireless.com/tools/debian release/ InRelease
Hit:5 Index of /ubuntu noble-security InRelease
Reading package lists… Done
W: https://downloads.sierrawireless.com/tools/debian/release/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
python3-jinja2 is already the newest version (3.1.2-1ubuntu1.3).
python3-jinja2 set to manually installed.
The following package was automatically installed and is no longer required:
libllvm19
Use ‘sudo apt autoremove’ to remove it.
The following additional packages will be installed:
autotools-dev m4
Suggested packages:
autoconf-archive gnu-standards autoconf-doc libtool gettext m4-doc
The following NEW packages will be installed:
autoconf automake autotools-dev m4 zip
0 upgraded, 5 newly installed, 0 to remove and 11 not upgraded.
Need to get 1361 kB of archives.
After this operation, 5011 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 Index of /ubuntu noble/main amd64 m4 amd64 1.4.19-4build1 [244 kB]
Get:2 Index of /ubuntu noble/main amd64 autoconf all 2.71-3 [339 kB]
Get:3 Index of /ubuntu noble/main amd64 autotools-dev all 20220109.1 [44.9 kB]
Get:4 Index of /ubuntu noble/main amd64 automake all 1:1.16.5-1.3ubuntu1 [558 kB]
Get:5 Index of /ubuntu noble-updates/main amd64 zip amd64 3.0-13ubuntu0.2 [176 kB]
Fetched 1361 kB in 2s (711 kB/s)
Selecting previously unselected package m4.
(Reading database … 51648 files and directories currently installed.)
Preparing to unpack …/m4_1.4.19-4build1_amd64.deb …
Unpacking m4 (1.4.19-4build1) …
Selecting previously unselected package autoconf.
Preparing to unpack …/autoconf_2.71-3_all.deb …
Unpacking autoconf (2.71-3) …
Selecting previously unselected package autotools-dev.
Preparing to unpack …/autotools-dev_20220109.1_all.deb …
Unpacking autotools-dev (20220109.1) …
Selecting previously unselected package automake.
Preparing to unpack …/automake_1%3a1.16.5-1.3ubuntu1_all.deb …
Unpacking automake (1:1.16.5-1.3ubuntu1) …
Selecting previously unselected package zip.
Preparing to unpack …/zip_3.0-13ubuntu0.2_amd64.deb …
Unpacking zip (3.0-13ubuntu0.2) …
Setting up m4 (1.4.19-4build1) …
Setting up zip (3.0-13ubuntu0.2) …
Setting up autotools-dev (20220109.1) …
Setting up autoconf (2.71-3) …
Setting up automake (1:1.16.5-1.3ubuntu1) …
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Processing triggers for install-info (7.1-3build2) …
Processing triggers for man-db (2.12.0-4build2) …
abharati@fsdclient0598:~/leaf-wp7702$ leaf profile sync SWI-WP77
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Profile is out of sync
Packages to install: wp77-legato_21.05.4-202509230336, wp77-toolchain_SWI9X06Y_03.00.15.03-linux64, wp77-modem-image_15.2.BP4, wp77-legato-image_21.05.4-202510160452, wp77-linux-image_SWI9X06Y_03.00.15.03, wp77-image_6.0.3, swi-legato_1.4.191225, swi-vscode-support_200624, swi-wp77_6.0.3
Total size: 545.8 MB
Do you want to continue? (Y/n)
Y
Run sync steps for swi-aptdeps-image_1.0
Run sync steps for swi-aptdeps-legato_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
/usr/bin/leaf-version-compare:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Checking required apt packages.swicwe
.swiflash
…
Warning!
These packages were not found on the current distribution:
python-jinja2
If the install fails, retry after have set LEAF_IGNORE_UNKNOWN_APT=1 env var.
In this case, these unknown dependencies will have to be installed manually.
You need to install some missing packages with command:
sudo apt-get update && sudo apt-get install swiflash swicwe
Do you want to execute this command (Y/n)? n
ERROR:
Profile provisioning interrupted
CAUSED BY:
Error while installing required packages (Error during sync step for swi-verify-aptdeps_1.7.210909 (command returned 2))
HINT:
try leaf profile sync to resume
abharati@fsdclient0598:~/leaf-wp7702$ leaf profile show
leaf status
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
usage: leaf profile [-h] [-v | -q] SUBCOMMAND …
leaf profile: error: argument SUBCOMMAND: invalid choice: ‘show’ (choose from ‘list’, ‘create’, ‘rename’, ‘delete’, ‘switch’, ‘sync’, ‘config’)
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
┌─────────────────────────────────────────┐
│ Workspace: /home/abharati/leaf-wp7702 │
╞═════════════════════════════════════════╡
│ Profile: SWI-WP77 [current] (not sync) │
├──────────┬────────────────┬─────────────┤
│ Packages │ Identifier │ Description │
├──────────┼────────────────┼─────────────┤
│ Included │ swi-wp77_6.0.3 │ │
└──────────┴────────────────┴─────────────┘
abharati@fsdclient0598:~/leaf-wp7702$ export LEAF_IGNORE_UNKNOWN_APT=1
abharati@fsdclient0598:~/leaf-wp7702$ leaf profile sync SWI-WP77
/usr/bin/leaf:6: DeprecationWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation
from pkg_resources import load_entry_point
Profile is out of sync
Packages to install: wp77-legato_21.05.4-202509230336, wp77-toolchain_SWI9X06Y_03.00.15.03-linux64, wp77-modem-image_15.2.BP4, wp77-legato-image_21.05.4-202510160452, wp77-linux-image_SWI9X06Y_03.00.15.03, wp77-image_6.0.3, swi-legato_1.4.191225, swi-vscode-support_200624, swi-wp77_6.0.3
Total size: 545.8 MB
Do you want to continue? (Y/n)
n
ERROR:
Profile provisioning interrupted
CAUSED BY:
Operation canceled by user
HINT:
try leaf profile sync to resume
abharati@fsdclient0598:~/leaf-wp7702$