Skip to content

credo pip failed to install packages, cause apparently they are not found #2

@alessandriLuca

Description

@alessandriLuca

@eliseomartelli
credo pip pandas
2025/06/24 08:38:40 apt.go:164: Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libpython3-stdlib libpython3.12-minimal libpython3.12-stdlib libsqlite3-0
media-types netbase python3-minimal python3.12 python3.12-minimal
Suggested packages:
python3-doc python3-tk python3-venv python3.12-venv python3.12-doc
binfmt-support
The following NEW packages will be installed:
libpython3-stdlib libpython3.12-minimal libpython3.12-stdlib libsqlite3-0
media-types netbase python3 python3-minimal python3.12 python3.12-minimal
0 upgraded, 10 newly installed, 0 to remove and 2 not upgraded.
Inst libpython3.12-minimal (3.12.3-1ubuntu0.5 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])
Inst python3.12-minimal (3.12.3-1ubuntu0.5 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])
Conf libpython3.12-minimal (3.12.3-1ubuntu0.5 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])
Conf python3.12-minimal (3.12.3-1ubuntu0.5 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])
Inst python3-minimal (3.12.3-0ubuntu2 Ubuntu:24.04/noble-updates [amd64])
Inst media-types (10.1.0 Ubuntu:24.04/noble [all])
Inst netbase (6.4 Ubuntu:24.04/noble [all])
Inst libsqlite3-0 (3.45.1-1ubuntu2.3 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])
Inst libpython3.12-stdlib (3.12.3-1ubuntu0.5 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])
Inst python3.12 (3.12.3-1ubuntu0.5 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])
Inst libpython3-stdlib (3.12.3-0ubuntu2 Ubuntu:24.04/noble-updates [amd64])
Conf python3-minimal (3.12.3-0ubuntu2 Ubuntu:24.04/noble-updates [amd64])
Inst python3 (3.12.3-0ubuntu2 Ubuntu:24.04/noble-updates [amd64])
Conf media-types (10.1.0 Ubuntu:24.04/noble [all])
Conf netbase (6.4 Ubuntu:24.04/noble [all])
Conf libsqlite3-0 (3.45.1-1ubuntu2.3 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])
Conf libpython3.12-stdlib (3.12.3-1ubuntu0.5 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])
Conf python3.12 (3.12.3-1ubuntu0.5 Ubuntu:24.04/noble-updates, Ubuntu:24.04/noble-security [amd64])
Conf libpython3-stdlib (3.12.3-0ubuntu2 Ubuntu:24.04/noble-updates [amd64])
Conf python3 (3.12.3-0ubuntu2 Ubuntu:24.04/noble-updates [amd64])
2025/06/24 08:38:42 apt.go:226: Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libpython3-stdlib libpython3.12-minimal libpython3.12-stdlib libsqlite3-0
media-types netbase python3-minimal python3.12 python3.12-minimal
Suggested packages:
python3-doc python3-tk python3-venv python3.12-venv python3.12-doc
binfmt-support
The following NEW packages will be installed:
libpython3-stdlib libpython3.12-minimal libpython3.12-stdlib libsqlite3-0
media-types netbase python3 python3-minimal python3.12 python3.12-minimal
0 upgraded, 10 newly installed, 0 to remove and 2 not upgraded.
Need to get 6698 kB of archives.
After this operation, 25.5 MB of additional disk space will be used.
Ign:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libpython3.12-minimal amd64 3.12.3-1ubuntu0.5
Ign:2 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3.12-minimal amd64 3.12.3-1ubuntu0.5
Get:3 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3-minimal amd64 3.12.3-0ubuntu2 [27.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble/main amd64 media-types all 10.1.0 [27.5 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble/main amd64 netbase all 6.4 [13.1 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libsqlite3-0 amd64 3.45.1-1ubuntu2.3 [701 kB]
Err:1 http://security.ubuntu.com/ubuntu noble-updates/main amd64 libpython3.12-minimal amd64 3.12.3-1ubuntu0.5
404 Not Found [IP: 185.125.190.82 80]
Ign:7 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libpython3.12-stdlib amd64 3.12.3-1ubuntu0.5
Ign:8 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3.12 amd64 3.12.3-1ubuntu0.5
Get:9 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libpython3-stdlib amd64 3.12.3-0ubuntu2 [10.0 kB]
Get:10 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3 amd64 3.12.3-0ubuntu2 [23.0 kB]
Err:2 http://security.ubuntu.com/ubuntu noble-updates/main amd64 python3.12-minimal amd64 3.12.3-1ubuntu0.5
404 Not Found [IP: 185.125.190.82 80]
Err:7 http://security.ubuntu.com/ubuntu noble-updates/main amd64 libpython3.12-stdlib amd64 3.12.3-1ubuntu0.5
404 Not Found [IP: 185.125.190.82 80]
Err:8 http://security.ubuntu.com/ubuntu noble-updates/main amd64 python3.12 amd64 3.12.3-1ubuntu0.5
404 Not Found [IP: 185.125.190.82 80]
Fetched 802 kB in 1s (1141 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python3.12/libpython3.12-minimal_3.12.3-1ubuntu0.5_amd64.deb 404 Not Found [IP: 185.125.190.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python3.12/python3.12-minimal_3.12.3-1ubuntu0.5_amd64.deb 404 Not Found [IP: 185.125.190.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python3.12/libpython3.12-stdlib_3.12.3-1ubuntu0.5_amd64.deb 404 Not Found [IP: 185.125.190.82 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python3.12/python3.12_3.12.3-1ubuntu0.5_amd64.deb 404 Not Found [IP: 185.125.190.82 80]
E: Some files failed to download
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x4e0940]

goroutine 1 [running]:
github.com/CREDOProject/go-pythonvenv.createVenv({0x4000022198, 0x16})
/home/runner/go/pkg/mod/github.com/!c!r!e!d!o!project/go-pythonvenv@v0.1.3/pythonvenv.go:42 +0x120
github.com/CREDOProject/go-pythonvenv.Create({0x4000022198, 0x16})
/home/runner/go/pkg/mod/github.com/!c!r!e!d!o!project/go-pythonvenv@v0.1.3/pythonvenv.go:25 +0x24
credo/modules.setupPythonVenv(...)
/home/runner/work/core/core/modules/pip.go:113
credo/modules.getPipBinary()
/home/runner/work/core/core/modules/pip.go:127 +0xa8
credo/modules.(*pipModule).bareRun(_, {{0x400000800809, 0x6}, {{0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, ...}, ...}})
/home/runner/work/core/core/modules/pip.go:172 +0x10c
credo/modules.(*pipModule).CliConfig.(*pipModule).cobraRun.func2(0x40001ce700?, {0x4000184490, 0x1, 0x64388b?})
/home/runner/work/core/core/modules/pip.go:256 +0xa0
github.com/spf13/cobra.(*Command).execute(0x40001d8f08, {0x4000184460, 0x1, 0x1})
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1019 +0x814
github.com/spf13/cobra.(*Command).ExecuteC(0x40001d8008)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(0x40001d8008?)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1071 +0x1c
main.main()
/home/runner/work/core/core/main.go:20 +0xd0

Im running this on my asus rog, always in the same docker ghcr.io/credoproject/core:latest . But if I try to install everything
apt update && apt install -y
libpython3-stdlib
libpython3.12-minimal
libpython3.12-stdlib
libsqlite3-0
media-types
netbase
python3
python3-minimal
python3.12
python3.12-minimal

it works on the same docker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions