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

[MacOS/Docker] psutil.cpu_freq() issue when using Docker images on top of M1 Macs #2318

Open
meg-bui opened this issue Oct 17, 2023 · 0 comments

Comments

@meg-bui
Copy link

meg-bui commented Oct 17, 2023

Summary

  • OS: MacOS
  • Architecture: Apple M1, ARM 64Bit
  • Psutil version: 5.9.5
  • Python version: 3.11.2
  • Type: core

Description

Hello! Thank you for creating this useful tool. I appreciate all the effort put into maintaining this massive project.

I would like to bring further attention to the issue of using psutil inside Docker images on top of M1 Macs. Particularly in using psutil.cpu_freq().

There is a known and open issue regarding psutil.cpu_freq() and M1 Macs (#1892). Using the related branch (#2222), psutil.cpu_freq() works locally and as expected on my M1 Mac.

mbui@Megan-Buis-MacBook-Pro poetry-demo % cat pyproject.toml 
[tool.poetry]
name = "poetry-demo"
version = "0.1.0"
description = ""
authors = [""]
readme = "README.md"
packages = [{include = "poetry_demo"}]

[tool.poetry.dependencies]
python = "^3.11"
psutil = {git = "https://github@github.com/snOm3ad/psutil.git", branch = "fix-cpu-freq-apple-silicon"}

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
mbui@Megan-Buis-MacBook-Pro poetry-demo % poetry update
Updating dependencies
Resolving dependencies... (16.3s)

Package operations: 0 installs, 1 update, 0 removals

  • Updating psutil (5.9.5 -> 5.9.5 d49409a)

Writing lock file
mbui@Megan-Buis-MacBook-Pro poetry-demo % poetry run python
Python 3.11.2 (main, Feb 28 2023, 07:52:04) [Clang 13.1.6 (clang-1316.0.21.2.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.cpu_freq().current
3228
>>> psutil.cpu_freq()
scpufreq(current=3228, min=600, max=3228)
>>> import sys
>>> sys.platform
'darwin'
>>> import platform
>>> platform.machine()
'arm64'

However, when using Docker images on top of my M1 Mac, the branch does not work as expected and is not able to produce the psutil.cpu_freq() metric (note I need to install gcc and git):

mbui@Megan-Buis-MacBook-Pro ~ % docker run --rm -it --entrypoint bash python:3.11-slim
root@d5abfa455cb0:/# apt-get update
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main arm64 Packages [8681 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main arm64 Packages [6408 B]
Get:6 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [77.0 kB]
Fetched 9015 kB in 3s (3152 kB/s)                     
Reading package lists... Done
root@d5abfa455cb0:/# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  base-files debian-archive-keyring debianutils libc-bin libc6 libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libpam-modules
  libpam-modules-bin libpam-runtime libpam0g libssl3 libsystemd0 libudev1 openssl
17 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7944 kB of archives.
After this operation, 55.3 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://deb.debian.org/debian bookworm/main arm64 base-files arm64 12.4+deb12u2 [70.7 kB]
Get:2 http://deb.debian.org/debian bookworm/main arm64 debianutils arm64 5.7-0.5~deb12u1 [103 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security/main arm64 libc6 arm64 2.36-9+deb12u3 [2321 kB]
Get:4 http://deb.debian.org/debian-security bookworm-security/main arm64 libc-bin arm64 2.36-9+deb12u3 [530 kB]
Get:5 http://deb.debian.org/debian bookworm/main arm64 libpam0g arm64 1.5.2-6+deb12u1 [90.6 kB]
Get:6 http://deb.debian.org/debian bookworm/main arm64 libpam-modules-bin arm64 1.5.2-6+deb12u1 [74.9 kB]
Get:7 http://deb.debian.org/debian bookworm/main arm64 libpam-modules arm64 1.5.2-6+deb12u1 [286 kB]
Get:8 http://deb.debian.org/debian bookworm/main arm64 libpam-runtime all 1.5.2-6+deb12u1 [161 kB]
Get:9 http://deb.debian.org/debian bookworm/main arm64 debian-archive-keyring all 2023.3+deb12u1 [161 kB]
Get:10 http://deb.debian.org/debian bookworm/main arm64 libsystemd0 arm64 252.17-1~deb12u1 [307 kB]
Get:11 http://deb.debian.org/debian bookworm/main arm64 libudev1 arm64 252.17-1~deb12u1 [102 kB]
Get:12 http://deb.debian.org/debian bookworm/main arm64 libgssapi-krb5-2 arm64 1.20.1-2+deb12u1 [123 kB]
Get:13 http://deb.debian.org/debian bookworm/main arm64 libkrb5-3 arm64 1.20.1-2+deb12u1 [313 kB]
Get:14 http://deb.debian.org/debian bookworm/main arm64 libkrb5support0 arm64 1.20.1-2+deb12u1 [31.7 kB]
Get:15 http://deb.debian.org/debian bookworm/main arm64 libk5crypto3 arm64 1.20.1-2+deb12u1 [79.0 kB]
Get:16 http://deb.debian.org/debian bookworm/main arm64 libssl3 arm64 3.0.11-1~deb12u1 [1804 kB]
Get:17 http://deb.debian.org/debian bookworm/main arm64 openssl arm64 3.0.11-1~deb12u1 [1387 kB]
Fetched 7944 kB in 2s (5112 kB/s)  
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../base-files_12.4+deb12u2_arm64.deb ...
Unpacking base-files (12.4+deb12u2) over (12.4+deb12u1) ...
Setting up base-files (12.4+deb12u2) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../debianutils_5.7-0.5~deb12u1_arm64.deb ...
Unpacking debianutils (5.7-0.5~deb12u1) over (5.7-0.4) ...
Setting up debianutils (5.7-0.5~deb12u1) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/which.debianutils because link group which is broken
update-alternatives: warning: skip creation of /usr/share/man/man1/which.1.gz because associated file /usr/share/man/man1/which.debianutils.1.gz (of link group which) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/which.1.gz because associated file /usr/share/man/de/man1/which.debianutils.1.gz (of link group which) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/es/man1/which.1.gz because associated file /usr/share/man/es/man1/which.debianutils.1.gz (of link group which) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/which.1.gz because associated file /usr/share/man/fr/man1/which.debianutils.1.gz (of link group which) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/which.1.gz because associated file /usr/share/man/it/man1/which.debianutils.1.gz (of link group which) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/which.1.gz because associated file /usr/share/man/ja/man1/which.debianutils.1.gz (of link group which) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/which.1.gz because associated file /usr/share/man/pl/man1/which.debianutils.1.gz (of link group which) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/sl/man1/which.1.gz because associated file /usr/share/man/sl/man1/which.debianutils.1.gz (of link group which) doesn't exist
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../libc6_2.36-9+deb12u3_arm64.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/aarch64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Unpacking libc6:arm64 (2.36-9+deb12u3) over (2.36-9+deb12u1) ...
Setting up libc6:arm64 (2.36-9+deb12u3) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/aarch64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.36-9+deb12u3_arm64.deb ...
Unpacking libc-bin (2.36-9+deb12u3) over (2.36-9+deb12u1) ...
Setting up libc-bin (2.36-9+deb12u3) ...
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../libpam0g_1.5.2-6+deb12u1_arm64.deb ...
Unpacking libpam0g:arm64 (1.5.2-6+deb12u1) over (1.5.2-6) ...
Setting up libpam0g:arm64 (1.5.2-6+deb12u1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/aarch64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../libpam-modules-bin_1.5.2-6+deb12u1_arm64.deb ...
Unpacking libpam-modules-bin (1.5.2-6+deb12u1) over (1.5.2-6) ...
Setting up libpam-modules-bin (1.5.2-6+deb12u1) ...
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../libpam-modules_1.5.2-6+deb12u1_arm64.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/aarch64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Unpacking libpam-modules:arm64 (1.5.2-6+deb12u1) over (1.5.2-6) ...
Setting up libpam-modules:arm64 (1.5.2-6+deb12u1) ...
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../libpam-runtime_1.5.2-6+deb12u1_all.deb ...
Unpacking libpam-runtime (1.5.2-6+deb12u1) over (1.5.2-6) ...
Setting up libpam-runtime (1.5.2-6+deb12u1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/aarch64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../debian-archive-keyring_2023.3+deb12u1_all.deb ...
Unpacking debian-archive-keyring (2023.3+deb12u1) over (2023.3) ...
Setting up debian-archive-keyring (2023.3+deb12u1) ...
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../libsystemd0_252.17-1~deb12u1_arm64.deb ...
Unpacking libsystemd0:arm64 (252.17-1~deb12u1) over (252.12-1~deb12u1) ...
Setting up libsystemd0:arm64 (252.17-1~deb12u1) ...
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../libudev1_252.17-1~deb12u1_arm64.deb ...
Unpacking libudev1:arm64 (252.17-1~deb12u1) over (252.12-1~deb12u1) ...
Setting up libudev1:arm64 (252.17-1~deb12u1) ...
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../0-libgssapi-krb5-2_1.20.1-2+deb12u1_arm64.deb ...
Unpacking libgssapi-krb5-2:arm64 (1.20.1-2+deb12u1) over (1.20.1-2) ...
Preparing to unpack .../1-libkrb5-3_1.20.1-2+deb12u1_arm64.deb ...
Unpacking libkrb5-3:arm64 (1.20.1-2+deb12u1) over (1.20.1-2) ...
Preparing to unpack .../2-libkrb5support0_1.20.1-2+deb12u1_arm64.deb ...
Unpacking libkrb5support0:arm64 (1.20.1-2+deb12u1) over (1.20.1-2) ...
Preparing to unpack .../3-libk5crypto3_1.20.1-2+deb12u1_arm64.deb ...
Unpacking libk5crypto3:arm64 (1.20.1-2+deb12u1) over (1.20.1-2) ...
Preparing to unpack .../4-libssl3_3.0.11-1~deb12u1_arm64.deb ...
Unpacking libssl3:arm64 (3.0.11-1~deb12u1) over (3.0.9-1) ...
Preparing to unpack .../5-openssl_3.0.11-1~deb12u1_arm64.deb ...
Unpacking openssl (3.0.11-1~deb12u1) over (3.0.9-1) ...
Setting up libssl3:arm64 (3.0.11-1~deb12u1) ...
Setting up libkrb5support0:arm64 (1.20.1-2+deb12u1) ...
Setting up libk5crypto3:arm64 (1.20.1-2+deb12u1) ...
Setting up libkrb5-3:arm64 (1.20.1-2+deb12u1) ...
Setting up openssl (3.0.11-1~deb12u1) ...
Setting up libgssapi-krb5-2:arm64 (1.20.1-2+deb12u1) ...
Processing triggers for libc-bin (2.36-9+deb12u3) ...
root@d5abfa455cb0:/# apt-get install -y gcc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  binutils binutils-aarch64-linux-gnu binutils-common cpp cpp-12 fontconfig-config fonts-dejavu-core gcc-12 libabsl20220623 libaom3 libasan8
  libatomic1 libavif15 libbinutils libbrotli1 libbsd0 libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdav1d6
  libde265-0 libdeflate0 libfontconfig1 libfreetype6 libgav1-1 libgcc-12-dev libgd3 libgomp1 libgprofng0 libheif1 libhwasan0 libisl23 libitm1
  libjansson4 libjbig0 libjpeg62-turbo liblerc4 liblsan0 libmpc3 libmpfr6 libnsl-dev libnuma1 libpng16-16 librav1e0 libsvtav1enc1 libtiff6
  libtirpc-dev libtsan2 libubsan1 libwebp7 libx11-6 libx11-data libx265-199 libxau6 libxcb1 libxdmcp6 libxpm4 libyuv0 linux-libc-dev manpages
  manpages-dev rpcsvc-proto
Suggested packages:
  binutils-doc cpp-doc gcc-12-locales cpp-12-doc gcc-multilib make autoconf automake libtool flex bison gdb gcc-doc gcc-12-doc glibc-doc
  libgd-tools man-browser
The following NEW packages will be installed:
  binutils binutils-aarch64-linux-gnu binutils-common cpp cpp-12 fontconfig-config fonts-dejavu-core gcc gcc-12 libabsl20220623 libaom3 libasan8
  libatomic1 libavif15 libbinutils libbrotli1 libbsd0 libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdav1d6
  libde265-0 libdeflate0 libfontconfig1 libfreetype6 libgav1-1 libgcc-12-dev libgd3 libgomp1 libgprofng0 libheif1 libhwasan0 libisl23 libitm1
  libjansson4 libjbig0 libjpeg62-turbo liblerc4 liblsan0 libmpc3 libmpfr6 libnsl-dev libnuma1 libpng16-16 librav1e0 libsvtav1enc1 libtiff6
  libtirpc-dev libtsan2 libubsan1 libwebp7 libx11-6 libx11-data libx265-199 libxau6 libxcb1 libxdmcp6 libxpm4 libyuv0 linux-libc-dev manpages
  manpages-dev rpcsvc-proto
0 upgraded, 67 newly installed, 0 to remove and 0 not upgraded.
Need to get 58.3 MB of archives.
After this operation, 227 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main arm64 manpages all 6.03-2 [1332 kB]
Get:2 http://deb.debian.org/debian bookworm/main arm64 binutils-common arm64 2.40-2 [2487 kB]
Get:3 http://deb.debian.org/debian bookworm/main arm64 libbinutils arm64 2.40-2 [645 kB]
Get:4 http://deb.debian.org/debian bookworm/main arm64 libctf-nobfd0 arm64 2.40-2 [144 kB]
Get:5 http://deb.debian.org/debian bookworm/main arm64 libctf0 arm64 2.40-2 [79.2 kB]
Get:6 http://deb.debian.org/debian bookworm/main arm64 libgprofng0 arm64 2.40-2 [680 kB]
Get:7 http://deb.debian.org/debian bookworm/main arm64 libjansson4 arm64 2.14-2 [40.2 kB]
Get:8 http://deb.debian.org/debian bookworm/main arm64 binutils-aarch64-linux-gnu arm64 2.40-2 [2637 kB]
Get:9 http://deb.debian.org/debian bookworm/main arm64 binutils arm64 2.40-2 [64.9 kB]
Get:10 http://deb.debian.org/debian bookworm/main arm64 libisl23 arm64 0.25-1 [611 kB]
Get:11 http://deb.debian.org/debian bookworm/main arm64 libmpfr6 arm64 4.2.0-1 [600 kB]
Get:12 http://deb.debian.org/debian bookworm/main arm64 libmpc3 arm64 1.3.1-1 [49.2 kB]
Get:13 http://deb.debian.org/debian bookworm/main arm64 cpp-12 arm64 12.2.0-14 [8226 kB]
Get:14 http://deb.debian.org/debian bookworm/main arm64 cpp arm64 4:12.2.0-3 [6832 B]
Get:15 http://deb.debian.org/debian bookworm/main arm64 fonts-dejavu-core all 2.37-6 [1068 kB]
Get:16 http://deb.debian.org/debian bookworm/main arm64 fontconfig-config arm64 2.14.1-4 [315 kB]
Get:17 http://deb.debian.org/debian bookworm/main arm64 libcc1-0 arm64 12.2.0-14 [37.7 kB]
Get:18 http://deb.debian.org/debian bookworm/main arm64 libgomp1 arm64 12.2.0-14 [104 kB]
Get:19 http://deb.debian.org/debian bookworm/main arm64 libitm1 arm64 12.2.0-14 [23.9 kB]
Get:20 http://deb.debian.org/debian bookworm/main arm64 libatomic1 arm64 12.2.0-14 [9536 B]
Get:21 http://deb.debian.org/debian bookworm/main arm64 libasan8 arm64 12.2.0-14 [2095 kB]
Get:22 http://deb.debian.org/debian bookworm/main arm64 liblsan0 arm64 12.2.0-14 [926 kB]
Get:23 http://deb.debian.org/debian bookworm/main arm64 libtsan2 arm64 12.2.0-14 [2179 kB]
Get:24 http://deb.debian.org/debian bookworm/main arm64 libubsan1 arm64 12.2.0-14 [862 kB]
Get:25 http://deb.debian.org/debian bookworm/main arm64 libhwasan0 arm64 12.2.0-14 [998 kB]
Get:26 http://deb.debian.org/debian bookworm/main arm64 libgcc-12-dev arm64 12.2.0-14 [959 kB]
Get:27 http://deb.debian.org/debian bookworm/main arm64 gcc-12 arm64 12.2.0-14 [16.3 MB]
Get:28 http://deb.debian.org/debian bookworm/main arm64 gcc arm64 4:12.2.0-3 [5244 B]                                                             
Get:29 http://deb.debian.org/debian bookworm/main arm64 libabsl20220623 arm64 20220623.1-1 [363 kB]                                               
Get:30 http://deb.debian.org/debian bookworm/main arm64 libaom3 arm64 3.6.0-1 [1379 kB]                                                           
Get:31 http://deb.debian.org/debian bookworm/main arm64 libdav1d6 arm64 1.0.0-2 [274 kB]                                                          
Get:32 http://deb.debian.org/debian bookworm/main arm64 libgav1-1 arm64 0.18.0-1+b1 [425 kB]                                                      
Get:33 http://deb.debian.org/debian bookworm/main arm64 librav1e0 arm64 0.5.1-6 [552 kB]                                                          
Get:34 http://deb.debian.org/debian bookworm/main arm64 libsvtav1enc1 arm64 1.4.1+dfsg-1 [1074 kB]                                                
Get:35 http://deb.debian.org/debian bookworm/main arm64 libjpeg62-turbo arm64 1:2.1.5-2 [171 kB]                                                  
Get:36 http://deb.debian.org/debian bookworm/main arm64 libyuv0 arm64 0.0~git20230123.b2528b0-1 [122 kB]                                          
Get:37 http://deb.debian.org/debian bookworm/main arm64 libavif15 arm64 0.11.1-1 [88.3 kB]                                                        
Get:38 http://deb.debian.org/debian bookworm/main arm64 libbrotli1 arm64 1.0.9-2+b6 [269 kB]                                                      
Get:39 http://deb.debian.org/debian bookworm/main arm64 libbsd0 arm64 0.11.7-2 [115 kB]                                                           
Get:40 http://deb.debian.org/debian-security bookworm-security/main arm64 libc-dev-bin arm64 2.36-9+deb12u3 [44.3 kB]                             
Get:41 http://deb.debian.org/debian bookworm/main arm64 libpng16-16 arm64 1.6.39-2 [269 kB]                                                       
Get:42 http://deb.debian.org/debian bookworm/main arm64 libfreetype6 arm64 2.12.1+dfsg-5 [369 kB]                                                 
Get:43 http://deb.debian.org/debian bookworm/main arm64 libfontconfig1 arm64 2.14.1-4 [381 kB]                                                    
Get:44 http://deb.debian.org/debian bookworm/main arm64 libde265-0 arm64 1.0.11-1 [148 kB]                                                        
Get:45 http://deb.debian.org/debian bookworm/main arm64 libnuma1 arm64 2.0.16-1 [20.3 kB]                                                         
Get:46 http://deb.debian.org/debian bookworm/main arm64 libx265-199 arm64 3.5-2+b1 [603 kB]                                                       
Get:47 http://deb.debian.org/debian bookworm/main arm64 libheif1 arm64 1.15.1-1 [191 kB]                                                          
Get:48 http://deb.debian.org/debian bookworm/main arm64 libdeflate0 arm64 1.14-1 [54.3 kB]                                                        
Get:49 http://deb.debian.org/debian bookworm/main arm64 libjbig0 arm64 2.1-6.1 [30.0 kB]                                                          
Get:50 http://deb.debian.org/debian bookworm/main arm64 liblerc4 arm64 4.0.0+ds-2 [138 kB]                                                        
Get:51 http://deb.debian.org/debian bookworm/main arm64 libwebp7 arm64 1.2.4-0.2+deb12u1 [260 kB]                                                 
Get:52 http://deb.debian.org/debian bookworm/main arm64 libtiff6 arm64 4.5.0-6 [300 kB]                                                           
Get:53 http://deb.debian.org/debian bookworm/main arm64 libxau6 arm64 1:1.0.9-1 [19.7 kB]                                                         
Get:54 http://deb.debian.org/debian bookworm/main arm64 libxdmcp6 arm64 1:1.1.2-3 [25.4 kB]                                                       
Get:55 http://deb.debian.org/debian bookworm/main arm64 libxcb1 arm64 1.15-1 [143 kB]                                                             
Get:56 http://deb.debian.org/debian-security bookworm-security/main arm64 libx11-data all 2:1.8.4-2+deb12u2 [292 kB]                              
Get:57 http://deb.debian.org/debian-security bookworm-security/main arm64 libx11-6 arm64 2:1.8.4-2+deb12u2 [735 kB]                               
Get:58 http://deb.debian.org/debian-security bookworm-security/main arm64 libxpm4 arm64 1:3.5.12-1.1+deb12u1 [45.4 kB]                            
Get:59 http://deb.debian.org/debian bookworm/main arm64 libgd3 arm64 2.3.3-9 [113 kB]                                                             
Get:60 http://deb.debian.org/debian-security bookworm-security/main arm64 libc-devtools arm64 2.36-9+deb12u3 [51.5 kB]                            
Get:61 http://deb.debian.org/debian bookworm/main arm64 linux-libc-dev arm64 6.1.55-1 [1846 kB]                                                   
Get:62 http://deb.debian.org/debian bookworm/main arm64 libcrypt-dev arm64 1:4.4.33-2 [121 kB]                                                    
Get:63 http://deb.debian.org/debian bookworm/main arm64 libtirpc-dev arm64 1.3.3+ds-1 [194 kB]                                                    
Get:64 http://deb.debian.org/debian bookworm/main arm64 libnsl-dev arm64 1.3.0-2 [66.1 kB]                                                        
Get:65 http://deb.debian.org/debian bookworm/main arm64 rpcsvc-proto arm64 1.4.3-1 [59.7 kB]                                                      
Get:66 http://deb.debian.org/debian-security bookworm-security/main arm64 libc6-dev arm64 2.36-9+deb12u3 [1428 kB]                                
Get:67 http://deb.debian.org/debian bookworm/main arm64 manpages-dev all 6.03-2 [2030 kB]                                                         
Fetched 58.3 MB in 11s (5184 kB/s)                                                                                                                
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package manpages.
(Reading database ... 6699 files and directories currently installed.)
Preparing to unpack .../00-manpages_6.03-2_all.deb ...
Unpacking manpages (6.03-2) ...
Selecting previously unselected package binutils-common:arm64.
Preparing to unpack .../01-binutils-common_2.40-2_arm64.deb ...
Unpacking binutils-common:arm64 (2.40-2) ...
Selecting previously unselected package libbinutils:arm64.
Preparing to unpack .../02-libbinutils_2.40-2_arm64.deb ...
Unpacking libbinutils:arm64 (2.40-2) ...
Selecting previously unselected package libctf-nobfd0:arm64.
Preparing to unpack .../03-libctf-nobfd0_2.40-2_arm64.deb ...
Unpacking libctf-nobfd0:arm64 (2.40-2) ...
Selecting previously unselected package libctf0:arm64.
Preparing to unpack .../04-libctf0_2.40-2_arm64.deb ...
Unpacking libctf0:arm64 (2.40-2) ...
Selecting previously unselected package libgprofng0:arm64.
Preparing to unpack .../05-libgprofng0_2.40-2_arm64.deb ...
Unpacking libgprofng0:arm64 (2.40-2) ...
Selecting previously unselected package libjansson4:arm64.
Preparing to unpack .../06-libjansson4_2.14-2_arm64.deb ...
Unpacking libjansson4:arm64 (2.14-2) ...
Selecting previously unselected package binutils-aarch64-linux-gnu.
Preparing to unpack .../07-binutils-aarch64-linux-gnu_2.40-2_arm64.deb ...
Unpacking binutils-aarch64-linux-gnu (2.40-2) ...
Selecting previously unselected package binutils.
Preparing to unpack .../08-binutils_2.40-2_arm64.deb ...
Unpacking binutils (2.40-2) ...
Selecting previously unselected package libisl23:arm64.
Preparing to unpack .../09-libisl23_0.25-1_arm64.deb ...
Unpacking libisl23:arm64 (0.25-1) ...
Selecting previously unselected package libmpfr6:arm64.
Preparing to unpack .../10-libmpfr6_4.2.0-1_arm64.deb ...
Unpacking libmpfr6:arm64 (4.2.0-1) ...
Selecting previously unselected package libmpc3:arm64.
Preparing to unpack .../11-libmpc3_1.3.1-1_arm64.deb ...
Unpacking libmpc3:arm64 (1.3.1-1) ...
Selecting previously unselected package cpp-12.
Preparing to unpack .../12-cpp-12_12.2.0-14_arm64.deb ...
Unpacking cpp-12 (12.2.0-14) ...
Selecting previously unselected package cpp.
Preparing to unpack .../13-cpp_4%3a12.2.0-3_arm64.deb ...
Unpacking cpp (4:12.2.0-3) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../14-fonts-dejavu-core_2.37-6_all.deb ...
Unpacking fonts-dejavu-core (2.37-6) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../15-fontconfig-config_2.14.1-4_arm64.deb ...
Unpacking fontconfig-config (2.14.1-4) ...
Selecting previously unselected package libcc1-0:arm64.
Preparing to unpack .../16-libcc1-0_12.2.0-14_arm64.deb ...
Unpacking libcc1-0:arm64 (12.2.0-14) ...
Selecting previously unselected package libgomp1:arm64.
Preparing to unpack .../17-libgomp1_12.2.0-14_arm64.deb ...
Unpacking libgomp1:arm64 (12.2.0-14) ...
Selecting previously unselected package libitm1:arm64.
Preparing to unpack .../18-libitm1_12.2.0-14_arm64.deb ...
Unpacking libitm1:arm64 (12.2.0-14) ...
Selecting previously unselected package libatomic1:arm64.
Preparing to unpack .../19-libatomic1_12.2.0-14_arm64.deb ...
Unpacking libatomic1:arm64 (12.2.0-14) ...
Selecting previously unselected package libasan8:arm64.
Preparing to unpack .../20-libasan8_12.2.0-14_arm64.deb ...
Unpacking libasan8:arm64 (12.2.0-14) ...
Selecting previously unselected package liblsan0:arm64.
Preparing to unpack .../21-liblsan0_12.2.0-14_arm64.deb ...
Unpacking liblsan0:arm64 (12.2.0-14) ...
Selecting previously unselected package libtsan2:arm64.
Preparing to unpack .../22-libtsan2_12.2.0-14_arm64.deb ...
Unpacking libtsan2:arm64 (12.2.0-14) ...
Selecting previously unselected package libubsan1:arm64.
Preparing to unpack .../23-libubsan1_12.2.0-14_arm64.deb ...
Unpacking libubsan1:arm64 (12.2.0-14) ...
Selecting previously unselected package libhwasan0:arm64.
Preparing to unpack .../24-libhwasan0_12.2.0-14_arm64.deb ...
Unpacking libhwasan0:arm64 (12.2.0-14) ...
Selecting previously unselected package libgcc-12-dev:arm64.
Preparing to unpack .../25-libgcc-12-dev_12.2.0-14_arm64.deb ...
Unpacking libgcc-12-dev:arm64 (12.2.0-14) ...
Selecting previously unselected package gcc-12.
Preparing to unpack .../26-gcc-12_12.2.0-14_arm64.deb ...
Unpacking gcc-12 (12.2.0-14) ...
Selecting previously unselected package gcc.
Preparing to unpack .../27-gcc_4%3a12.2.0-3_arm64.deb ...
Unpacking gcc (4:12.2.0-3) ...
Selecting previously unselected package libabsl20220623:arm64.
Preparing to unpack .../28-libabsl20220623_20220623.1-1_arm64.deb ...
Unpacking libabsl20220623:arm64 (20220623.1-1) ...
Selecting previously unselected package libaom3:arm64.
Preparing to unpack .../29-libaom3_3.6.0-1_arm64.deb ...
Unpacking libaom3:arm64 (3.6.0-1) ...
Selecting previously unselected package libdav1d6:arm64.
Preparing to unpack .../30-libdav1d6_1.0.0-2_arm64.deb ...
Unpacking libdav1d6:arm64 (1.0.0-2) ...
Selecting previously unselected package libgav1-1:arm64.
Preparing to unpack .../31-libgav1-1_0.18.0-1+b1_arm64.deb ...
Unpacking libgav1-1:arm64 (0.18.0-1+b1) ...
Selecting previously unselected package librav1e0:arm64.
Preparing to unpack .../32-librav1e0_0.5.1-6_arm64.deb ...
Unpacking librav1e0:arm64 (0.5.1-6) ...
Selecting previously unselected package libsvtav1enc1:arm64.
Preparing to unpack .../33-libsvtav1enc1_1.4.1+dfsg-1_arm64.deb ...
Unpacking libsvtav1enc1:arm64 (1.4.1+dfsg-1) ...
Selecting previously unselected package libjpeg62-turbo:arm64.
Preparing to unpack .../34-libjpeg62-turbo_1%3a2.1.5-2_arm64.deb ...
Unpacking libjpeg62-turbo:arm64 (1:2.1.5-2) ...
Selecting previously unselected package libyuv0:arm64.
Preparing to unpack .../35-libyuv0_0.0~git20230123.b2528b0-1_arm64.deb ...
Unpacking libyuv0:arm64 (0.0~git20230123.b2528b0-1) ...
Selecting previously unselected package libavif15:arm64.
Preparing to unpack .../36-libavif15_0.11.1-1_arm64.deb ...
Unpacking libavif15:arm64 (0.11.1-1) ...
Selecting previously unselected package libbrotli1:arm64.
Preparing to unpack .../37-libbrotli1_1.0.9-2+b6_arm64.deb ...
Unpacking libbrotli1:arm64 (1.0.9-2+b6) ...
Selecting previously unselected package libbsd0:arm64.
Preparing to unpack .../38-libbsd0_0.11.7-2_arm64.deb ...
Unpacking libbsd0:arm64 (0.11.7-2) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../39-libc-dev-bin_2.36-9+deb12u3_arm64.deb ...
Unpacking libc-dev-bin (2.36-9+deb12u3) ...
Selecting previously unselected package libpng16-16:arm64.
Preparing to unpack .../40-libpng16-16_1.6.39-2_arm64.deb ...
Unpacking libpng16-16:arm64 (1.6.39-2) ...
Selecting previously unselected package libfreetype6:arm64.
Preparing to unpack .../41-libfreetype6_2.12.1+dfsg-5_arm64.deb ...
Unpacking libfreetype6:arm64 (2.12.1+dfsg-5) ...
Selecting previously unselected package libfontconfig1:arm64.
Preparing to unpack .../42-libfontconfig1_2.14.1-4_arm64.deb ...
Unpacking libfontconfig1:arm64 (2.14.1-4) ...
Selecting previously unselected package libde265-0:arm64.
Preparing to unpack .../43-libde265-0_1.0.11-1_arm64.deb ...
Unpacking libde265-0:arm64 (1.0.11-1) ...
Selecting previously unselected package libnuma1:arm64.
Preparing to unpack .../44-libnuma1_2.0.16-1_arm64.deb ...
Unpacking libnuma1:arm64 (2.0.16-1) ...
Selecting previously unselected package libx265-199:arm64.
Preparing to unpack .../45-libx265-199_3.5-2+b1_arm64.deb ...
Unpacking libx265-199:arm64 (3.5-2+b1) ...
Selecting previously unselected package libheif1:arm64.
Preparing to unpack .../46-libheif1_1.15.1-1_arm64.deb ...
Unpacking libheif1:arm64 (1.15.1-1) ...
Selecting previously unselected package libdeflate0:arm64.
Preparing to unpack .../47-libdeflate0_1.14-1_arm64.deb ...
Unpacking libdeflate0:arm64 (1.14-1) ...
Selecting previously unselected package libjbig0:arm64.
Preparing to unpack .../48-libjbig0_2.1-6.1_arm64.deb ...
Unpacking libjbig0:arm64 (2.1-6.1) ...
Selecting previously unselected package liblerc4:arm64.
Preparing to unpack .../49-liblerc4_4.0.0+ds-2_arm64.deb ...
Unpacking liblerc4:arm64 (4.0.0+ds-2) ...
Selecting previously unselected package libwebp7:arm64.
Preparing to unpack .../50-libwebp7_1.2.4-0.2+deb12u1_arm64.deb ...
Unpacking libwebp7:arm64 (1.2.4-0.2+deb12u1) ...
Selecting previously unselected package libtiff6:arm64.
Preparing to unpack .../51-libtiff6_4.5.0-6_arm64.deb ...
Unpacking libtiff6:arm64 (4.5.0-6) ...
Selecting previously unselected package libxau6:arm64.
Preparing to unpack .../52-libxau6_1%3a1.0.9-1_arm64.deb ...
Unpacking libxau6:arm64 (1:1.0.9-1) ...
Selecting previously unselected package libxdmcp6:arm64.
Preparing to unpack .../53-libxdmcp6_1%3a1.1.2-3_arm64.deb ...
Unpacking libxdmcp6:arm64 (1:1.1.2-3) ...
Selecting previously unselected package libxcb1:arm64.
Preparing to unpack .../54-libxcb1_1.15-1_arm64.deb ...
Unpacking libxcb1:arm64 (1.15-1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../55-libx11-data_2%3a1.8.4-2+deb12u2_all.deb ...
Unpacking libx11-data (2:1.8.4-2+deb12u2) ...
Selecting previously unselected package libx11-6:arm64.
Preparing to unpack .../56-libx11-6_2%3a1.8.4-2+deb12u2_arm64.deb ...
Unpacking libx11-6:arm64 (2:1.8.4-2+deb12u2) ...
Selecting previously unselected package libxpm4:arm64.
Preparing to unpack .../57-libxpm4_1%3a3.5.12-1.1+deb12u1_arm64.deb ...
Unpacking libxpm4:arm64 (1:3.5.12-1.1+deb12u1) ...
Selecting previously unselected package libgd3:arm64.
Preparing to unpack .../58-libgd3_2.3.3-9_arm64.deb ...
Unpacking libgd3:arm64 (2.3.3-9) ...
Selecting previously unselected package libc-devtools.
Preparing to unpack .../59-libc-devtools_2.36-9+deb12u3_arm64.deb ...
Unpacking libc-devtools (2.36-9+deb12u3) ...
Selecting previously unselected package linux-libc-dev:arm64.
Preparing to unpack .../60-linux-libc-dev_6.1.55-1_arm64.deb ...
Unpacking linux-libc-dev:arm64 (6.1.55-1) ...
Selecting previously unselected package libcrypt-dev:arm64.
Preparing to unpack .../61-libcrypt-dev_1%3a4.4.33-2_arm64.deb ...
Unpacking libcrypt-dev:arm64 (1:4.4.33-2) ...
Selecting previously unselected package libtirpc-dev:arm64.
Preparing to unpack .../62-libtirpc-dev_1.3.3+ds-1_arm64.deb ...
Unpacking libtirpc-dev:arm64 (1.3.3+ds-1) ...
Selecting previously unselected package libnsl-dev:arm64.
Preparing to unpack .../63-libnsl-dev_1.3.0-2_arm64.deb ...
Unpacking libnsl-dev:arm64 (1.3.0-2) ...
Selecting previously unselected package rpcsvc-proto.
Preparing to unpack .../64-rpcsvc-proto_1.4.3-1_arm64.deb ...
Unpacking rpcsvc-proto (1.4.3-1) ...
Selecting previously unselected package libc6-dev:arm64.
Preparing to unpack .../65-libc6-dev_2.36-9+deb12u3_arm64.deb ...
Unpacking libc6-dev:arm64 (2.36-9+deb12u3) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../66-manpages-dev_6.03-2_all.deb ...
Unpacking manpages-dev (6.03-2) ...
Setting up libaom3:arm64 (3.6.0-1) ...
Setting up libabsl20220623:arm64 (20220623.1-1) ...
Setting up libxau6:arm64 (1:1.0.9-1) ...
Setting up liblerc4:arm64 (4.0.0+ds-2) ...
Setting up manpages (6.03-2) ...
Setting up libbrotli1:arm64 (1.0.9-2+b6) ...
Setting up binutils-common:arm64 (2.40-2) ...
Setting up libdeflate0:arm64 (1.14-1) ...
Setting up linux-libc-dev:arm64 (6.1.55-1) ...
Setting up libctf-nobfd0:arm64 (2.40-2) ...
Setting up libsvtav1enc1:arm64 (1.4.1+dfsg-1) ...
Setting up libgomp1:arm64 (12.2.0-14) ...
Setting up libjbig0:arm64 (2.1-6.1) ...
Setting up librav1e0:arm64 (0.5.1-6) ...
Setting up libjansson4:arm64 (2.14-2) ...
Setting up libtirpc-dev:arm64 (1.3.3+ds-1) ...
Setting up rpcsvc-proto (1.4.3-1) ...
Setting up libjpeg62-turbo:arm64 (1:2.1.5-2) ...
Setting up libx11-data (2:1.8.4-2+deb12u2) ...
Setting up libmpfr6:arm64 (4.2.0-1) ...
Setting up libpng16-16:arm64 (1.6.39-2) ...
Setting up libmpc3:arm64 (1.3.1-1) ...
Setting up libatomic1:arm64 (12.2.0-14) ...
Setting up fonts-dejavu-core (2.37-6) ...
Setting up libgav1-1:arm64 (0.18.0-1+b1) ...
Setting up libdav1d6:arm64 (1.0.0-2) ...
Setting up libwebp7:arm64 (1.2.4-0.2+deb12u1) ...
Setting up libubsan1:arm64 (12.2.0-14) ...
Setting up libnuma1:arm64 (2.0.16-1) ...
Setting up libnsl-dev:arm64 (1.3.0-2) ...
Setting up libhwasan0:arm64 (12.2.0-14) ...
Setting up libcrypt-dev:arm64 (1:4.4.33-2) ...
Setting up libtiff6:arm64 (4.5.0-6) ...
Setting up libasan8:arm64 (12.2.0-14) ...
Setting up libtsan2:arm64 (12.2.0-14) ...
Setting up libbinutils:arm64 (2.40-2) ...
Setting up libisl23:arm64 (0.25-1) ...
Setting up libde265-0:arm64 (1.0.11-1) ...
Setting up libc-dev-bin (2.36-9+deb12u3) ...
Setting up libbsd0:arm64 (0.11.7-2) ...
Setting up libyuv0:arm64 (0.0~git20230123.b2528b0-1) ...
Setting up libcc1-0:arm64 (12.2.0-14) ...
Setting up liblsan0:arm64 (12.2.0-14) ...
Setting up libitm1:arm64 (12.2.0-14) ...
Setting up libctf0:arm64 (2.40-2) ...
Setting up manpages-dev (6.03-2) ...
Setting up libxdmcp6:arm64 (1:1.1.2-3) ...
Setting up cpp-12 (12.2.0-14) ...
Setting up libxcb1:arm64 (1.15-1) ...
Setting up libavif15:arm64 (0.11.1-1) ...
Setting up fontconfig-config (2.14.1-4) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/aarch64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libgprofng0:arm64 (2.40-2) ...
Setting up libfreetype6:arm64 (2.12.1+dfsg-5) ...
Setting up libgcc-12-dev:arm64 (12.2.0-14) ...
Setting up libx265-199:arm64 (3.5-2+b1) ...
Setting up cpp (4:12.2.0-3) ...
Setting up libc6-dev:arm64 (2.36-9+deb12u3) ...
Setting up libx11-6:arm64 (2:1.8.4-2+deb12u2) ...
Setting up libfontconfig1:arm64 (2.14.1-4) ...
Setting up libxpm4:arm64 (1:3.5.12-1.1+deb12u1) ...
Setting up libheif1:arm64 (1.15.1-1) ...
Setting up binutils-aarch64-linux-gnu (2.40-2) ...
Setting up binutils (2.40-2) ...
Setting up gcc-12 (12.2.0-14) ...
Setting up libgd3:arm64 (2.3.3-9) ...
Setting up libc-devtools (2.36-9+deb12u3) ...
Setting up gcc (4:12.2.0-3) ...
Processing triggers for libc-bin (2.36-9+deb12u3) ...
root@d5abfa455cb0:/# apt-get install -y git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  git-man less libcbor0.8 libcurl3-gnutls libedit2 liberror-perl libfido2-1 libgdbm-compat4 libldap-2.5-0 libldap-common libnghttp2-14
  libperl5.36 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libssh2-1 libxext6 libxmuu1 openssh-client patch perl
  perl-modules-5.36 publicsuffix xauth
Suggested packages:
  gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn sensible-utils
  libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql keychain
  libpam-ssh monkeysphere ssh-askpass ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make
  libtap-harness-archive-perl
The following NEW packages will be installed:
  git git-man less libcbor0.8 libcurl3-gnutls libedit2 liberror-perl libfido2-1 libgdbm-compat4 libldap-2.5-0 libldap-common libnghttp2-14
  libperl5.36 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libssh2-1 libxext6 libxmuu1 openssh-client patch perl
  perl-modules-5.36 publicsuffix xauth
0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.9 MB of archives.
After this operation, 110 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main arm64 perl-modules-5.36 all 5.36.0-7 [2815 kB]
Get:2 http://deb.debian.org/debian bookworm/main arm64 libgdbm-compat4 arm64 1.23-3 [48.0 kB]
Get:3 http://deb.debian.org/debian bookworm/main arm64 libperl5.36 arm64 5.36.0-7 [4019 kB]
Get:4 http://deb.debian.org/debian bookworm/main arm64 perl arm64 5.36.0-7 [239 kB]
Get:5 http://deb.debian.org/debian bookworm/main arm64 less arm64 590-2 [128 kB]
Get:6 http://deb.debian.org/debian bookworm/main arm64 libedit2 arm64 3.1-20221030-2 [88.1 kB]
Get:7 http://deb.debian.org/debian bookworm/main arm64 libcbor0.8 arm64 0.8.0-2+b1 [26.0 kB]
Get:8 http://deb.debian.org/debian bookworm/main arm64 libfido2-1 arm64 1.12.0-2+b1 [72.6 kB]
Get:9 http://deb.debian.org/debian bookworm/main arm64 openssh-client arm64 1:9.2p1-2+deb12u1 [935 kB]
Get:10 http://deb.debian.org/debian bookworm/main arm64 libsasl2-modules-db arm64 2.1.28+dfsg-10 [20.8 kB]
Get:11 http://deb.debian.org/debian bookworm/main arm64 libsasl2-2 arm64 2.1.28+dfsg-10 [58.0 kB]
Get:12 http://deb.debian.org/debian bookworm/main arm64 libldap-2.5-0 arm64 2.5.13+dfsg-5 [171 kB]
Get:13 http://deb.debian.org/debian bookworm/main arm64 libnghttp2-14 arm64 1.52.0-1 [67.9 kB]
Get:14 http://deb.debian.org/debian bookworm/main arm64 libpsl5 arm64 0.21.2-1 [58.6 kB]
Get:15 http://deb.debian.org/debian bookworm/main arm64 librtmp1 arm64 2.4+20151223.gitfa8646d.1-2+b2 [59.4 kB]
Get:16 http://deb.debian.org/debian bookworm/main arm64 libssh2-1 arm64 1.10.0-3+b1 [172 kB]
Get:17 http://deb.debian.org/debian-security bookworm-security/main arm64 libcurl3-gnutls arm64 7.88.1-10+deb12u4 [361 kB]
Get:18 http://deb.debian.org/debian bookworm/main arm64 liberror-perl all 0.17029-2 [29.0 kB]
Get:19 http://deb.debian.org/debian bookworm/main arm64 git-man all 1:2.39.2-1.1 [2049 kB]
Get:20 http://deb.debian.org/debian bookworm/main arm64 git arm64 1:2.39.2-1.1 [7023 kB]
Get:21 http://deb.debian.org/debian bookworm/main arm64 libldap-common all 2.5.13+dfsg-5 [29.3 kB]                                                
Get:22 http://deb.debian.org/debian bookworm/main arm64 libsasl2-modules arm64 2.1.28+dfsg-10 [63.1 kB]                                           
Get:23 http://deb.debian.org/debian bookworm/main arm64 libxext6 arm64 2:1.3.4-1+b1 [51.7 kB]                                                     
Get:24 http://deb.debian.org/debian bookworm/main arm64 libxmuu1 arm64 2:1.1.3-3 [24.0 kB]                                                        
Get:25 http://deb.debian.org/debian bookworm/main arm64 patch arm64 2.7.6-7 [121 kB]                                                              
Get:26 http://deb.debian.org/debian bookworm/main arm64 publicsuffix all 20230209.2326-1 [126 kB]                                                 
Get:27 http://deb.debian.org/debian bookworm/main arm64 xauth arm64 1:1.1.2-1 [35.5 kB]                                                           
Fetched 18.9 MB in 9s (2170 kB/s)                                                                                                                 
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package perl-modules-5.36.
(Reading database ... 12373 files and directories currently installed.)
Preparing to unpack .../00-perl-modules-5.36_5.36.0-7_all.deb ...
Unpacking perl-modules-5.36 (5.36.0-7) ...
Selecting previously unselected package libgdbm-compat4:arm64.
Preparing to unpack .../01-libgdbm-compat4_1.23-3_arm64.deb ...
Unpacking libgdbm-compat4:arm64 (1.23-3) ...
Selecting previously unselected package libperl5.36:arm64.
Preparing to unpack .../02-libperl5.36_5.36.0-7_arm64.deb ...
Unpacking libperl5.36:arm64 (5.36.0-7) ...
Selecting previously unselected package perl.
Preparing to unpack .../03-perl_5.36.0-7_arm64.deb ...
Unpacking perl (5.36.0-7) ...
Selecting previously unselected package less.
Preparing to unpack .../04-less_590-2_arm64.deb ...
Unpacking less (590-2) ...
Selecting previously unselected package libedit2:arm64.
Preparing to unpack .../05-libedit2_3.1-20221030-2_arm64.deb ...
Unpacking libedit2:arm64 (3.1-20221030-2) ...
Selecting previously unselected package libcbor0.8:arm64.
Preparing to unpack .../06-libcbor0.8_0.8.0-2+b1_arm64.deb ...
Unpacking libcbor0.8:arm64 (0.8.0-2+b1) ...
Selecting previously unselected package libfido2-1:arm64.
Preparing to unpack .../07-libfido2-1_1.12.0-2+b1_arm64.deb ...
Unpacking libfido2-1:arm64 (1.12.0-2+b1) ...
Selecting previously unselected package openssh-client.
Preparing to unpack .../08-openssh-client_1%3a9.2p1-2+deb12u1_arm64.deb ...
Unpacking openssh-client (1:9.2p1-2+deb12u1) ...
Selecting previously unselected package libsasl2-modules-db:arm64.
Preparing to unpack .../09-libsasl2-modules-db_2.1.28+dfsg-10_arm64.deb ...
Unpacking libsasl2-modules-db:arm64 (2.1.28+dfsg-10) ...
Selecting previously unselected package libsasl2-2:arm64.
Preparing to unpack .../10-libsasl2-2_2.1.28+dfsg-10_arm64.deb ...
Unpacking libsasl2-2:arm64 (2.1.28+dfsg-10) ...
Selecting previously unselected package libldap-2.5-0:arm64.
Preparing to unpack .../11-libldap-2.5-0_2.5.13+dfsg-5_arm64.deb ...
Unpacking libldap-2.5-0:arm64 (2.5.13+dfsg-5) ...
Selecting previously unselected package libnghttp2-14:arm64.
Preparing to unpack .../12-libnghttp2-14_1.52.0-1_arm64.deb ...
Unpacking libnghttp2-14:arm64 (1.52.0-1) ...
Selecting previously unselected package libpsl5:arm64.
Preparing to unpack .../13-libpsl5_0.21.2-1_arm64.deb ...
Unpacking libpsl5:arm64 (0.21.2-1) ...
Selecting previously unselected package librtmp1:arm64.
Preparing to unpack .../14-librtmp1_2.4+20151223.gitfa8646d.1-2+b2_arm64.deb ...
Unpacking librtmp1:arm64 (2.4+20151223.gitfa8646d.1-2+b2) ...
Selecting previously unselected package libssh2-1:arm64.
Preparing to unpack .../15-libssh2-1_1.10.0-3+b1_arm64.deb ...
Unpacking libssh2-1:arm64 (1.10.0-3+b1) ...
Selecting previously unselected package libcurl3-gnutls:arm64.
Preparing to unpack .../16-libcurl3-gnutls_7.88.1-10+deb12u4_arm64.deb ...
Unpacking libcurl3-gnutls:arm64 (7.88.1-10+deb12u4) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../17-liberror-perl_0.17029-2_all.deb ...
Unpacking liberror-perl (0.17029-2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../18-git-man_1%3a2.39.2-1.1_all.deb ...
Unpacking git-man (1:2.39.2-1.1) ...
Selecting previously unselected package git.
Preparing to unpack .../19-git_1%3a2.39.2-1.1_arm64.deb ...
Unpacking git (1:2.39.2-1.1) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../20-libldap-common_2.5.13+dfsg-5_all.deb ...
Unpacking libldap-common (2.5.13+dfsg-5) ...
Selecting previously unselected package libsasl2-modules:arm64.
Preparing to unpack .../21-libsasl2-modules_2.1.28+dfsg-10_arm64.deb ...
Unpacking libsasl2-modules:arm64 (2.1.28+dfsg-10) ...
Selecting previously unselected package libxext6:arm64.
Preparing to unpack .../22-libxext6_2%3a1.3.4-1+b1_arm64.deb ...
Unpacking libxext6:arm64 (2:1.3.4-1+b1) ...
Selecting previously unselected package libxmuu1:arm64.
Preparing to unpack .../23-libxmuu1_2%3a1.1.3-3_arm64.deb ...
Unpacking libxmuu1:arm64 (2:1.1.3-3) ...
Selecting previously unselected package patch.
Preparing to unpack .../24-patch_2.7.6-7_arm64.deb ...
Unpacking patch (2.7.6-7) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../25-publicsuffix_20230209.2326-1_all.deb ...
Unpacking publicsuffix (20230209.2326-1) ...
Selecting previously unselected package xauth.
Preparing to unpack .../26-xauth_1%3a1.1.2-1_arm64.deb ...
Unpacking xauth (1:1.1.2-1) ...
Setting up libpsl5:arm64 (0.21.2-1) ...
Setting up libcbor0.8:arm64 (0.8.0-2+b1) ...
Setting up libedit2:arm64 (3.1-20221030-2) ...
Setting up libsasl2-modules:arm64 (2.1.28+dfsg-10) ...
Setting up libnghttp2-14:arm64 (1.52.0-1) ...
Setting up less (590-2) ...
Setting up libxext6:arm64 (2:1.3.4-1+b1) ...
Setting up libldap-common (2.5.13+dfsg-5) ...
Setting up libsasl2-modules-db:arm64 (2.1.28+dfsg-10) ...
Setting up perl-modules-5.36 (5.36.0-7) ...
Setting up librtmp1:arm64 (2.4+20151223.gitfa8646d.1-2+b2) ...
Setting up patch (2.7.6-7) ...
Setting up libgdbm-compat4:arm64 (1.23-3) ...
Setting up libsasl2-2:arm64 (2.1.28+dfsg-10) ...
Setting up git-man (1:2.39.2-1.1) ...
Setting up libssh2-1:arm64 (1.10.0-3+b1) ...
Setting up libfido2-1:arm64 (1.12.0-2+b1) ...
Setting up publicsuffix (20230209.2326-1) ...
Setting up libperl5.36:arm64 (5.36.0-7) ...
Setting up libxmuu1:arm64 (2:1.1.3-3) ...
Setting up openssh-client (1:9.2p1-2+deb12u1) ...
Setting up libldap-2.5-0:arm64 (2.5.13+dfsg-5) ...
Setting up perl (5.36.0-7) ...
Setting up xauth (1:1.1.2-1) ...
Setting up libcurl3-gnutls:arm64 (7.88.1-10+deb12u4) ...
Setting up liberror-perl (0.17029-2) ...
Setting up git (1:2.39.2-1.1) ...
Processing triggers for libc-bin (2.36-9+deb12u3) ...
root@5806ae84b770:/# python -m pip install git+https://github@github.com/snOm3ad/psutil.git@fix-cpu-freq-apple-silicon
Collecting git+https://****@github.com/snOm3ad/psutil.git@fix-cpu-freq-apple-silicon
  Cloning https://****@github.com/snOm3ad/psutil.git (to revision fix-cpu-freq-apple-silicon) to /tmp/pip-req-build-xyz0ibtw
  Running command git clone --filter=blob:none --quiet 'https://****@github.com/snOm3ad/psutil.git' /tmp/pip-req-build-xyz0ibtw
  Running command git checkout -b fix-cpu-freq-apple-silicon --track origin/fix-cpu-freq-apple-silicon
  Switched to a new branch 'fix-cpu-freq-apple-silicon'
  branch 'fix-cpu-freq-apple-silicon' set up to track 'origin/fix-cpu-freq-apple-silicon'.
  Resolved https://****@github.com/snOm3ad/psutil.git to commit d49409a6f5358b5d08e4a63ade2b23805777106e
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: psutil
  Building wheel for psutil (pyproject.toml) ... done
  Created wheel for psutil: filename=psutil-5.9.5-cp311-abi3-linux_aarch64.whl size=283683 sha256=4d417b4b424a97562959d60215895bbc958253655e7951f4fdfe3505f1e3431c
  Stored in directory: /tmp/pip-ephem-wheel-cache-xaa5oj6e/wheels/a4/e6/9c/1cb45baffeb1b7ae1ffe78b996ca3aea7a8a2c9f86dc2d28cf
Successfully built psutil
Installing collected packages: psutil
Successfully installed psutil-5.9.5
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@5806ae84b770:/# python
Python 3.11.6 (main, Oct  3 2023, 03:20:53) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.cpu_freq()
>>> psutil.cpu_freq().current
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'current'
>>> import sys
>>> sys.platform
'linux'
>>> import platform
>>> platform.machine()
'aarch64'

I believe the reason is that the docker images are sys.platform == "linux"and platform.machine() == "aarch64". As such, psutil attemps to acquire psutil.cpu_freq() as it would on a linux machine, but really the underlining operating system is sys.platform == "darwin" and platform.machine() == "arm64". psutil attemps to acquire the psutil.cpu_freq() as it would a linux machine but acquiring this metric on M1 Mac requires vastly different approaches. I don't believe there are darwin containers/images.

Has anyone ran into this issue, and are there workarounds to address this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant