Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade python3-distutils to python3-setuptools #363

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

nyanmisaka
Copy link
Contributor

@nyanmisaka nyanmisaka commented Apr 11, 2024

distutils (distutils package for Python 3.x) was deprecated a long time ago and will be removed in python 3.12. Upgrade to setuptools (Python3 Distutils Enhancements) instead.

See also https://bugs.launchpad.net/ubuntu/+source/python3-stdlib-extensions/+bug/2060772

Related to #361

`distutils` (distutils package for Python 3.x) was deprecated a long time ago and will be removed in python 3.12. Upgrade to `setuptools` (Python3 Distutils Enhancements) instead.

See also https://bugs.launchpad.net/ubuntu/+source/python3-stdlib-extensions/+bug/2060772
@BtbN
Copy link
Owner

BtbN commented Apr 11, 2024

I don't understand why ghcr.io/btbn/ffmpeg-builds/base:latest is suddenly "unauthorized".
This has worked fine not too long ago, and comparing it to other packages that pull just fine, everything is identical.

Not sure if this PR is correct, if something needs distutils, it'll have to stay.
I'm not sure why I even install it at all, but it must have been for some reason.

@T-bagwell
Copy link

LGTM

This can fix problem
`20.71 Reading package lists...
21.01 Building dependency tree...
21.05 Reading state information...
21.06 Package python3-distutils is not available, but is referred to by another package.
21.06 This may mean that the package is missing, has been obsoleted, or
21.06 is only available from another source
21.06
21.06 E: Package 'python3-distutils' has no installation candidate

WARNING: local cache import at .cache/ghcr.io/btbn/ffmpeg-builds/base_latest not found due to err: could not read .cache/ghcr.io/btbn/ffmpeg-builds/base_latest/index.json: open .cache/ghcr.io/btbn/ffmpeg-builds/base_latest/index.json: no such file or directory
Dockerfile:4

3 | ENV DEBIAN_FRONTEND noninteractive
4 | >>> RUN
5 | >>> apt-get -y update &&
6 | >>> apt-get -y dist-upgrade &&
7 | >>> apt-get -y install build-essential yasm nasm
8 | >>> xxd pkgconf curl wget unzip zip git subversion mercurial rsync jq
9 | >>> autoconf automake libtool libtool-bin autopoint gettext cmake clang meson ninja-build
10 | >>> texinfo texi2html help2man flex bison groff
11 | >>> gperf itstool ragel libc6-dev zlib1g-dev libssl-dev
12 | >>> gtk-doc-tools gobject-introspection gawk
13 | >>> ocaml ocamlbuild libnum-ocaml-dev indent p7zip-full
14 | >>> python3-distutils python3-jinja2 python3-jsonschema python3-apt python-is-python3 &&
15 | >>> apt-get -y clean &&
16 | >>> git config --global user.email "builder@localhost" &&
17 | >>> git config --global user.name "Builder" &&
18 | >>> git config --global advice.detachedHead false
19 |

ERROR: failed to solve: process "/bin/sh -c apt-get -y update && apt-get -y dist-upgrade && apt-get -y install build-essential yasm nasm xxd pkgconf curl wget unzip zip git subversion mercurial rsync jq autoconf automake libtool libtool-bin autopoint gettext cmake clang meson ninja-build texinfo texi2html help2man flex bison groff gperf itstool ragel libc6-dev zlib1g-dev libssl-dev gtk-doc-tools gobject-introspection gawk ocaml ocamlbuild libnum-ocaml-dev indent p7zip-full python3-distutils python3-jinja2 python3-jsonschema python3-apt python-is-python3 && apt-get -y clean && git config --global user.email "builder@localhost" && git config --global user.name "Builder" && git config --global advice.detachedHead false" did not complete successfully: exit code: 100

  • rm -f /tmp/tmp.cIKeQ9vOTs.toml`

@BtbN BtbN merged commit 1a3e916 into BtbN:master Apr 15, 2024
33 of 36 checks passed
@nyanmisaka nyanmisaka deleted the patch-1 branch April 15, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants