The python plugin doesn't install python itself in the final image.
One would expect that with a rockcraft.yaml file like this one below, the container would contain python3 in it and the required python packages installed.
This issue is present with both 20.04 and 22.04 (I haven't tested with 18.04) and it seems to come from the fact that we are using the python3 software installed from a snap in the build process and that is not available at runtime.
Additional information
Content of the /bin directory:
root@569d22eaf8c3:~# ls -lrt /bin/
total 13760
lrwxrwxrwx 1 root root 4 Apr 18 2022 rbash -> bash
-rwxr-xr-x 1 root root 10567027 Nov 6 10:45 pebble
-rwxr-xr-x 1 root root 2242971 Nov 6 10:45 chrorder
lrwxrwxrwx 1 root root 7 Nov 6 10:46 python -> python3
-rw-r--r-- 1 root root 2395 Nov 6 10:46 activate.fish
-rw-r--r-- 1 root root 1243 Nov 6 10:46 activate.csh
-rw-r--r-- 1 root root 2191 Nov 6 10:46 activate
-rw-r--r-- 1 root root 8834 Nov 6 10:46 Activate.ps1
-rwxr-xr-x 1 root root 234 Nov 6 10:47 easy_install
-rwxr-xr-x 1 root root 946 Nov 6 10:47 which
-rwxr-xr-x 1 root root 14360 Nov 6 10:47 tempfile
-rwxr-xr-x 1 root root 27144 Nov 6 10:47 run-parts
-rwxr-xr-x 1 root root 225 Nov 6 10:47 pip3.8
-rwxr-xr-x 1 root root 225 Nov 6 10:47 pip3
-rwxr-xr-x 1 root root 225 Nov 6 10:47 pip
-rwxr-xr-x 1 root root 234 Nov 6 10:47 easy_install-3.8
-rwxr-xr-x 1 root root 1183448 Nov 6 10:47 bash
lrwxrwxrwx 1 root root 18 Nov 6 10:47 python3 -> /usr/bin/python3.8
root@569d22eaf8c3:~#
Description
The python plugin doesn't install python itself in the final image.
One would expect that with a
rockcraft.yaml
file like this one below, the container would containpython3
in it and the required python packages installed.This issue is present with both 20.04 and 22.04 (I haven't tested with 18.04) and it seems to come from the fact that we are using the python3 software installed from a snap in the build process and that is not available at runtime.
Additional information
Content of the
/bin
directory:Content of the
/usr/bin
directory: