canonical / chisel-releases

36 stars 51 forks source link

Python 3.11. slices not found for 22.04 #256

Closed eguerrant closed 5 months ago

eguerrant commented 6 months ago

Hi, I was attempting to try out chisel with on Ubuntu 22.04 with python3.11 but ran into the following error:

% docker build . 
[+] Building 1.0s (11/12)                                                                                                                                                                                       

... 

 => ERROR [builder 7/7] RUN chisel cut --release /opt/chisel-releases --root /rootfs     base-files_base     base-files_release-info     tzdata_zoneinfo     ca-certificates_data     libc-bin_nsswitch     libgcc-s1_li  0.2s
------                                                                                                                                                                                                                         
 > [builder 7/7] RUN chisel cut --release /opt/chisel-releases --root /rootfs     base-files_base     base-files_release-info     tzdata_zoneinfo     ca-certificates_data     libc-bin_nsswitch     libgcc-s1_libs     libc6_libs     openssl_config     python3.11_standard:
0.177 + chisel cut --release /opt/chisel-releases --root /rootfs base-files_base base-files_release-info tzdata_zoneinfo ca-certificates_data libc-bin_nsswitch libgcc-s1_libs libc6_libs openssl_config python3.11_standard
0.179 2024/05/30 18:22:09 Processing /opt/chisel-releases release...
0.226 2024/05/30 18:22:09 Selecting slices...
0.226 error: slices of package "python3.11" not found
------
Dockerfile:24
--------------------
  23 |     
  24 | >>> RUN chisel cut --release /opt/chisel-releases --root /rootfs \
  25 | >>>     base-files_base \
  26 | >>>     base-files_release-info \
  27 | >>>     tzdata_zoneinfo \
  28 | >>>     ca-certificates_data \
  29 | >>>     libc-bin_nsswitch \
  30 | >>>     libgcc-s1_libs \
  31 | >>>     libc6_libs \
  32 | >>>     openssl_config \
  33 | >>>     python3.11_standard
  34 |     
--------------------
ERROR: failed to solve: process "/bin/bash -oeux pipefail -c chisel cut --release /opt/chisel-releases --root /rootfs     base-files_base     base-files_release-info     tzdata_zoneinfo     ca-certificates_data     libc-bin_nsswitch     libgcc-s1_libs     libc6_libs     openssl_config     python3.11_standard" did not complete successfully: exit code: 1

It seems that there may be a problem with the python yaml file, although I'm not sure where to start debugging since it looks pretty similar to the other yaml files that work correctly... I used this Dockerfile with openssl_config and python3.11_standard added to the chisel cut command. Any guidance on how to get this up and running or where to start looking to debug python3.11.yaml would be appreciated. Thanks!

rebornplusplus commented 6 months ago

Hi, I believe this is failing because of the chisel-releases repo that is being used in that Dockerfile:

RUN git clone -b ubuntu-${UBUNTU_RELEASE}_2 https://github.com/cjdcordeiro/chisel-releases /opt/chisel-releases

https://github.com/canonical/chiselled-base/blob/5063bef729bbaa4450659625dd598dc2534dd668/chiselled-base/Dockerfile.22.04#L15

Make sure to use this repo: https://github.com/canonical/chisel-releases/.

linostar commented 5 months ago

chiselled-base was updated in https://github.com/canonical/chiselled-base/pull/15 so it is now using official slices from chisel-releases. This should solve the issue you were having.