After a night of thoughts, my guess was that python from stage-packages affected python from snapcraft.
1/ [Test1] check python version and modules
2/ load python runtime stage-packages
3/ [Test2] check python version and modules
4/ build app with requirements
5/ [Test3] check python version and modules
parts:
test:
plugin: nil
override-build: |
python3 -V
pip list
craftctl default
python-runtime:
after:
- test
plugin: nil
stage-packages:
- python3.14-minimal
- python3
- python3-venv
test2:
after:
- python-runtime
plugin: nil
override-build: |
python3 -V
pip list
craftctl default
bazarr:
after:
- test2
plugin: python
python-requirements:
- requirements.txt
source: .
override-pull: |
# Pull
rm -rf $CRAFT_PART_SRC/{,.[!.],..?}*
download_url=$(curl -sL https://api.github.com/repos/morpheus65535/bazarr/releases/latest | sed -nre "s/^.*\"browser_download_url\": \"([^\"]*)\".*/\1/p")
wget "${download_url}" -O srcfile
unzip srcfile
craftctl default
#build-environment:
# - PARTS_PYTHON_INTERPRETER: python3.14
override-build: |
# Get Last Source Tag version and Check Snap (with same Source) version
src_version=$(curl -sL https://api.github.com/repos/morpheus65535/bazarr/releases/latest | sed -nre "s/^.*\/download\/v([^\/]*)\/.*/\1/p")
echo "Source last tag: ${src_version}"
snap_last_version=$(curl -sL -H "Snap-Device-Series: 16" "https://api.snapcraft.io/v2/snaps/info/bazarr-tak?architecture=${CRAFT_ARCH_BUILD_FOR}&fields=version" | sed -nre "s/^.*\"stable\"\,\"track\"\:\"latest\"\}\,\"version\"\:\"([^\"]*)\".*/\1/p");
echo "Snap last version: ${snap_last_version}"
snap_build_with_same_version=$(echo $snap_last_version | sed -nre "s/^($src_version.*).*/\1/p");
# Same version ?
if [ -z "$snap_build_with_same_version" ]
then
new_snap_version="${src_version}";
else
# Get snap build version
snap_build=$(echo $snap_build_with_same_version | sed -nre 's/^.*-v([0-9]*).*/\1/p');
# Already a build version ?
if [ -z "$snap_build" ]
then
# init @v2
new_snap_build="2";
else
# increment @v+1
new_snap_build=$(($snap_build+1));
fi
new_snap_version="${src_version}-v${new_snap_build}";
fi
craftctl set version=$new_snap_version
# Build
INST_DIR="$CRAFT_PART_INSTALL/Bazarr"
mkdir -p "$INST_DIR"
cp -a ./* $INST_DIR
craftctl default
build-packages:
- curl
- wget
- unzip
test3:
after:
- bazarr
plugin: nil
override-build: |
python3 -V
pip list
craftctl default
- It results that snapcraft python is affected by this ; with different modules and different modules versions:
Building test
:: + python3 -V
:: Python 3.14.4
:: + pip list
:: Package Version
:: ----------------- -------
:: autocommand 2.2.2
:: inflect 7.5.0
:: jaraco.context 6.0.1
:: jaraco.functools 4.1.0
:: jaraco.text 4.0.0
:: more-itertools 10.8.0
:: packaging 26.0
:: pip 25.1.1
:: setuptools 78.1.1
:: typeguard 4.4.4
:: typing_extensions 4.15.0
:: wheel 0.46.3
:: zipp 3.23.0
:: + craftctl default
Building test2
:: + python3 -V
:: Python 3.14.4
:: + pip list
:: Package Version
:: ----------------- -------
:: autocommand 2.2.2
:: inflect 7.5.0
:: jaraco.context 6.0.1
:: jaraco.functools 4.1.0
:: jaraco.text 4.0.0
:: more-itertools 10.8.0
:: packaging 26.0
:: pip 25.1.1
:: setuptools 78.1.1
:: typeguard 4.4.4
:: typing_extensions 4.15.0
:: wheel 0.46.3
:: zipp 3.23.0
Building test3
:: + python3 -V
:: Python 3.14.4
:: + pip list
:: Package Version
:: ---------------- -------
:: lxml 6.1.0
:: numpy 2.3.5
:: packaging 26.2
:: pillow 12.2.0
:: pip 26.1.1
:: setuptools 82.0.1
:: webrtcvad-wheels 2.0.14
:: wheel 0.47.0
:: + craftctl default
Wouldnβt it be problematic for the other parts of snapcraft that uses python ?
Whole output:
Building test
:: + python3 -V
:: Python 3.14.4
:: + pip list
:: Package Version
:: ----------------- -------
:: autocommand 2.2.2
:: inflect 7.5.0
:: jaraco.context 6.0.1
:: jaraco.functools 4.1.0
:: jaraco.text 4.0.0
:: more-itertools 10.8.0
:: packaging 26.0
:: pip 25.1.1
:: setuptools 78.1.1
:: typeguard 4.4.4
:: typing_extensions 4.15.0
:: wheel 0.46.3
:: zipp 3.23.0
:: + craftctl default
Skipping pull for test (already ran)
Skipping build for test (already ran)
Staging test (required to build 'python-runtime')
Building python-runtime
Skipping pull for python-runtime (already ran)
Skipping build for python-runtime (already ran)
Staging python-runtime (required to build 'test2')
Building test2
:: + python3 -V
:: Python 3.14.4
:: + pip list
:: Package Version
:: ----------------- -------
:: autocommand 2.2.2
:: inflect 7.5.0
:: jaraco.context 6.0.1
:: jaraco.functools 4.1.0
:: jaraco.text 4.0.0
:: more-itertools 10.8.0
:: packaging 26.0
:: pip 25.1.1
:: setuptools 78.1.1
:: typeguard 4.4.4
:: typing_extensions 4.15.0
:: wheel 0.46.3
:: zipp 3.23.0
:: + craftctl default
Skipping pull for test2 (already ran)
Skipping build for test2 (already ran)
Staging test2 (required to build 'bazarr')
Building bazarr
:: ++ curl -sL https://api.github.com/repos/morpheus65535/bazarr/releases/latest
:: ++ sed -nre 's/^.*\/download\/v([^\/]*)\/.*/\1/p'
:: + src_version=1.5.6
:: + echo 'Source last tag: 1.5.6'
:: Source last tag: 1.5.6
:: ++ curl -sL -H 'Snap-Device-Series: 16' 'https://api.snapcraft.io/v2/snaps/info/bazarr-tak?architecture=amd64&fields=version'
:: ++ sed -nre 's/^.*"stable"\,"track"\:"latest"\}\,"version"\:"([^"]*)".*/\1/p'
:: + snap_last_version=1.5.6
:: + echo 'Snap last version: 1.5.6'
:: Snap last version: 1.5.6
:: ++ echo 1.5.6
:: ++ sed -nre 's/^(1.5.6.*).*/\1/p'
:: + snap_build_with_same_version=1.5.6
:: + '[' -z 1.5.6 ']'
:: ++ echo 1.5.6
:: ++ sed -nre 's/^.*-v([0-9]*).*/\1/p'
:: + snap_build=
:: + '[' -z '' ']'
:: + new_snap_build=2
:: + new_snap_version=1.5.6-v2
:: + craftctl set version=1.5.6-v2
:: + INST_DIR=/root/parts/bazarr/install/Bazarr
:: + mkdir -p /root/parts/bazarr/install/Bazarr
:: + cp -a ./LICENSE ./README.md ./VERSION ./bazarr ./bazarr.py ./custom_libs ./frontend ./icon.png ./libs ./migrations ./postgres-requirements.txt ./requirements.txt ./snap ./srcfile /root/parts/bazarr/install/Bazarr
:: + craftctl default
:: + python3 -m venv /root/parts/bazarr/install
:: + PARTS_PYTHON_VENV_INTERP_PATH=/root/parts/bazarr/install/bin/python3
:: + /root/parts/bazarr/install/bin/pip install -U pip setuptools wheel
:: Requirement already satisfied: pip in /root/parts/bazarr/install/lib/python3.14/site-packages (25.1.1)
:: Collecting pip
:: Downloading pip-26.1.1-py3-none-any.whl.metadata (4.6 kB)
:: Collecting setuptools
:: Downloading setuptools-82.0.1-py3-none-any.whl.metadata (6.5 kB)
:: Collecting wheel
:: Downloading wheel-0.47.0-py3-none-any.whl.metadata (2.3 kB)
:: Collecting packaging>=24.0 (from wheel)
:: Downloading packaging-26.2-py3-none-any.whl.metadata (3.5 kB)
:: Downloading pip-26.1.1-py3-none-any.whl (1.8 MB)
:: ββββββββββββββββββββββββββββββββββββββββ 1.8/1.8 MB 6.3 MB/s eta 0:00:00
:: Downloading setuptools-82.0.1-py3-none-any.whl (1.0 MB)
:: ββββββββββββββββββββββββββββββββββββββββ 1.0/1.0 MB 6.3 MB/s eta 0:00:00
:: Downloading wheel-0.47.0-py3-none-any.whl (32 kB)
:: Downloading packaging-26.2-py3-none-any.whl (100 kB)
:: Installing collected packages: setuptools, pip, packaging, wheel
:: Attempting uninstall: pip
:: Found existing installation: pip 25.1.1
:: Uninstalling pip-25.1.1:
:: Successfully uninstalled pip-25.1.1
::
:: Successfully installed packaging-26.2 pip-26.1.1 setuptools-82.0.1 wheel-0.47.0
:: + /root/parts/bazarr/install/bin/pip install -U -r requirements.txt
:: WARNING: Cache entry deserialization failed, entry ignored
:: Ignoring pywin32: markers 'platform_system == "Windows"' don't match your environment
:: Requirement already satisfied: setuptools in /root/parts/bazarr/install/lib/python3.14/site-packages (from -r requirements.txt (line 1)) (82.0.1)
:: WARNING: Cache entry deserialization failed, entry ignored
:: Collecting lxml>=4.3.0 (from -r requirements.txt (line 2))
:: Downloading lxml-6.1.0-cp314-cp314-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl.metadata (4.0 kB)
:: Collecting numpy<2.4.0,>=1.12.0 (from -r requirements.txt (line 3))
:: Downloading numpy-2.3.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (62 kB)
:: Collecting webrtcvad-wheels>=2.0.10 (from -r requirements.txt (line 4))
:: Downloading webrtcvad_wheels-2.0.14.tar.gz (70 kB)
:: Installing build dependencies: started
:: Installing build dependencies: finished with status 'done'
:: Getting requirements to build wheel: started
:: Getting requirements to build wheel: finished with status 'done'
:: Preparing metadata (pyproject.toml): started
:: Preparing metadata (pyproject.toml): finished with status 'done'
:: Collecting Pillow>=9.0.0 (from -r requirements.txt (line 5))
:: Downloading pillow-12.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (8.8 kB)
:: Downloading numpy-2.3.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.6 MB)
:: ββββββββββββββββββββββββββββββββββββββββ 16.6/16.6 MB 9.0 MB/s 0:00:01
:: Downloading lxml-6.1.0-cp314-cp314-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl (5.2 MB)
:: ββββββββββββββββββββββββββββββββββββββββ 5.2/5.2 MB 9.1 MB/s 0:00:00
:: Downloading pillow-12.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.1 MB)
:: ββββββββββββββββββββββββββββββββββββββββ 7.1/7.1 MB 9.2 MB/s 0:00:00
:: Building wheels for collected packages: webrtcvad-wheels
:: Building wheel for webrtcvad-wheels (pyproject.toml): started
:: Building wheel for webrtcvad-wheels (pyproject.toml): finished with status 'done'
:: Created wheel for webrtcvad-wheels: filename=webrtcvad_wheels-2.0.14-cp314-cp314-linux_x86_64.whl size=77816 sha256=3b16f50b8aa370c88cbf9cb4f2ee74ef7ca77a42558e75d7fc6a7371f804e3e6
:: Stored in directory: /root/.cache/pip/wheels/34/cc/e8/c2a5f73b19d5dbc9b454ac337f4acb9c5b1c903cffabf045e4
:: Successfully built webrtcvad-wheels
:: Installing collected packages: webrtcvad-wheels, Pillow, numpy, lxml
::
:: Successfully installed Pillow-12.2.0 lxml-6.1.0 numpy-2.3.5 webrtcvad-wheels-2.0.14
:: + '[' -f setup.py ']'
:: + '[' -f pyproject.toml ']'
:: + find /root/parts/bazarr/install -type f -executable -print0
:: + xargs --no-run-if-empty -0 sed -i '1 s|^#\!/root/parts/bazarr/install/bin/python3.*$|#!/usr/bin/env python3|'
:: ++ set +o
:: ++ grep errexit
:: + opts_state='set +o errexit'
:: + set +e
:: + install_dir=/root/parts/bazarr/install/usr/bin
:: + stage_dir=/root/stage/usr/bin
:: +++ readlink -f /root/parts/bazarr/install/bin/python3
:: ++ basename /usr/bin/python3.14
:: + basename=python3.14
:: Looking for a Python interpreter called "python3.14" in the payload...
:: + echo Looking for a Python interpreter called '"python3.14"' in the payload...
:: ++ find /root/parts/bazarr/install/usr/bin /root/stage/usr/bin -type f -executable -name python3.14 -print -quit
:: ++ true
:: + payload_python=/root/stage/usr/bin/python3.14
:: + '[' -n /root/stage/usr/bin/python3.14 ']'
:: Found interpreter in payload: "/root/stage/usr/bin/python3.14"
:: + echo Found interpreter in payload: '"/root/stage/usr/bin/python3.14"'
:: + installed_python=/root/stage/usr/bin/python3.14
:: + '[' /root/stage/usr/bin/python3.14 = /root/stage/usr/bin/python3.14 ']'
:: + symlink_target=../usr/bin/python3.14
:: + '[' -z ../usr/bin/python3.14 ']'
:: + eval 'set +o errexit'
:: ++ set +o errexit
:: + ln -sf ../usr/bin/python3.14 /root/parts/bazarr/install/bin/python3
Skipping pull for bazarr (already ran)
Skipping build for bazarr (already ran)
Staging bazarr (required to build 'test3')
Building test3
:: + python3 -V
:: Python 3.14.4
:: + pip list
:: Package Version
:: ---------------- -------
:: lxml 6.1.0
:: numpy 2.3.5
:: packaging 26.2
:: pillow 12.2.0
:: pip 26.1.1
:: setuptools 82.0.1
:: webrtcvad-wheels 2.0.14
:: wheel 0.47.0
:: + craftctl default
- Same test with python3.13 from deadsnakes ppa:
Diff:
package-repositories:
- type: apt
ppa: deadsnakes/ppa
python-runtime:
after:
- test
plugin: nil
stage-packages:
#- python3.14-minimal
- python3.13
- python3.13-venv
build-environment:
- PARTS_PYTHON_INTERPRETER: python3.13
Output:
Building test
:: + python3 -V
:: Python 3.14.4
:: + pip list
:: Package Version
:: ----------------- -------
:: autocommand 2.2.2
:: inflect 7.5.0
:: jaraco.context 6.0.1
:: jaraco.functools 4.1.0
:: jaraco.text 4.0.0
:: more-itertools 10.8.0
:: packaging 26.0
:: pip 25.1.1
:: setuptools 78.1.1
:: typeguard 4.4.4
:: typing_extensions 4.15.0
:: wheel 0.46.3
:: zipp 3.23.0
:: + craftctl default
Building test2
:: + python3 -V
:: Python 3.14.4
:: + pip list
:: Package Version
:: ----------------- -------
:: autocommand 2.2.2
:: inflect 7.5.0
:: jaraco.context 6.0.1
:: jaraco.functools 4.1.0
:: jaraco.text 4.0.0
:: more-itertools 10.8.0
:: packaging 26.0
:: pip 25.1.1
:: setuptools 78.1.1
:: typeguard 4.4.4
:: typing_extensions 4.15.0
:: wheel 0.46.3
:: zipp 3.23.0
:: + craftctl default
Building test3
:: + python3 -V
:: Python 3.13.13
:: + pip list
:: Traceback (most recent call last):
:: File "/root/stage/bin/pip", line 3, in <module>
:: from pip._internal.cli.main import main
:: ModuleNotFoundError: No module named 'pip'
'override-build' in part 'test3' failed with code 1.
Detailed information:
:: + python3 -V
:: + pip list
:: Traceback (most recent call last):
:: File "/root/stage/bin/pip", line 3, in <module>
:: from pip._internal.cli.main import main
:: ModuleNotFoundError: No module named 'pip'
Recommended resolution: Review the scriptlet and make sure it's correct.
Snapcraft now uses python3.13 (and fails to find even pip).
Whole output:
Building test
:: + python3 -V
:: Python 3.14.4
:: + pip list
:: Package Version
:: ----------------- -------
:: autocommand 2.2.2
:: inflect 7.5.0
:: jaraco.context 6.0.1
:: jaraco.functools 4.1.0
:: jaraco.text 4.0.0
:: more-itertools 10.8.0
:: packaging 26.0
:: pip 25.1.1
:: setuptools 78.1.1
:: typeguard 4.4.4
:: typing_extensions 4.15.0
:: wheel 0.46.3
:: zipp 3.23.0
:: + craftctl default
Skipping pull for test (already ran)
Skipping build for test (already ran)
Staging test (required to build 'python-runtime')
Building python-runtime
Skipping pull for python-runtime (already ran)
Skipping build for python-runtime (already ran)
Staging python-runtime (required to build 'test2')
Building test2
:: + python3 -V
:: Python 3.14.4
:: + pip list
:: Package Version
:: ----------------- -------
:: autocommand 2.2.2
:: inflect 7.5.0
:: jaraco.context 6.0.1
:: jaraco.functools 4.1.0
:: jaraco.text 4.0.0
:: more-itertools 10.8.0
:: packaging 26.0
:: pip 25.1.1
:: setuptools 78.1.1
:: typeguard 4.4.4
:: typing_extensions 4.15.0
:: wheel 0.46.3
:: zipp 3.23.0
:: + craftctl default
Skipping pull for test2 (already ran)
Skipping build for test2 (already ran)
Staging test2 (required to build 'bazarr')
Building bazarr
:: ++ curl -sL https://api.github.com/repos/morpheus65535/bazarr/releases/latest
:: ++ sed -nre 's/^.*\/download\/v([^\/]*)\/.*/\1/p'
:: + src_version=1.5.6
:: + echo 'Source last tag: 1.5.6'
:: Source last tag: 1.5.6
:: ++ curl -sL -H 'Snap-Device-Series: 16' 'https://api.snapcraft.io/v2/snaps/info/bazarr-tak?architecture=amd64&fields=version'
:: ++ sed -nre 's/^.*"stable"\,"track"\:"latest"\}\,"version"\:"([^"]*)".*/\1/p'
:: + snap_last_version=1.5.6
:: + echo 'Snap last version: 1.5.6'
:: Snap last version: 1.5.6
:: ++ echo 1.5.6
:: ++ sed -nre 's/^(1.5.6.*).*/\1/p'
:: + snap_build_with_same_version=1.5.6
:: + '[' -z 1.5.6 ']'
:: ++ echo 1.5.6
:: ++ sed -nre 's/^.*-v([0-9]*).*/\1/p'
:: + snap_build=
:: + '[' -z '' ']'
:: + new_snap_build=2
:: + new_snap_version=1.5.6-v2
:: + craftctl set version=1.5.6-v2
:: + INST_DIR=/root/parts/bazarr/install/Bazarr
:: + mkdir -p /root/parts/bazarr/install/Bazarr
:: + cp -a ./LICENSE ./README.md ./VERSION ./bazarr ./bazarr.py ./custom_libs ./frontend ./icon.png ./libs ./migrations ./postgres-requirements.txt ./requirements.txt ./snap ./srcfile /root/parts/bazarr/install/Bazarr
:: + craftctl default
:: + python3.13 -m venv /root/parts/bazarr/install
:: + PARTS_PYTHON_VENV_INTERP_PATH=/root/parts/bazarr/install/bin/python3.13
:: + /root/parts/bazarr/install/bin/pip install -U pip setuptools wheel
:: Requirement already satisfied: pip in /root/parts/bazarr/install/lib/python3.13/site-packages (26.0.1)
:: Collecting pip
:: Downloading pip-26.1.1-py3-none-any.whl.metadata (4.6 kB)
:: Collecting setuptools
:: Downloading setuptools-82.0.1-py3-none-any.whl.metadata (6.5 kB)
:: Collecting wheel
:: Downloading wheel-0.47.0-py3-none-any.whl.metadata (2.3 kB)
:: Collecting packaging>=24.0 (from wheel)
:: Downloading packaging-26.2-py3-none-any.whl.metadata (3.5 kB)
:: Downloading pip-26.1.1-py3-none-any.whl (1.8 MB)
:: ββββββββββββββββββββββββββββββββββββββββ 1.8/1.8 MB 7.9 MB/s 0:00:00
:: Downloading setuptools-82.0.1-py3-none-any.whl (1.0 MB)
:: ββββββββββββββββββββββββββββββββββββββββ 1.0/1.0 MB 5.7 MB/s 0:00:00
:: Downloading wheel-0.47.0-py3-none-any.whl (32 kB)
:: Downloading packaging-26.2-py3-none-any.whl (100 kB)
:: Installing collected packages: setuptools, pip, packaging, wheel
:: Attempting uninstall: pip
:: Found existing installation: pip 26.0.1
:: Uninstalling pip-26.0.1:
:: Successfully uninstalled pip-26.0.1
::
:: Successfully installed packaging-26.2 pip-26.1.1 setuptools-82.0.1 wheel-0.47.0
:: + /root/parts/bazarr/install/bin/pip install -U -r requirements.txt
:: Ignoring pywin32: markers 'platform_system == "Windows"' don't match your environment
:: Requirement already satisfied: setuptools in /root/parts/bazarr/install/lib/python3.13/site-packages (from -r requirements.txt (line 1)) (82.0.1)
:: Collecting lxml>=4.3.0 (from -r requirements.txt (line 2))
:: Downloading lxml-6.1.0-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl.metadata (4.0 kB)
:: Collecting numpy<2.4.0,>=1.12.0 (from -r requirements.txt (line 3))
:: Downloading numpy-2.3.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (62 kB)
:: Collecting webrtcvad-wheels>=2.0.10 (from -r requirements.txt (line 4))
:: Downloading webrtcvad_wheels-2.0.14-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.5 kB)
:: Collecting Pillow>=9.0.0 (from -r requirements.txt (line 5))
:: Downloading pillow-12.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (8.8 kB)
:: Downloading numpy-2.3.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.6 MB)
:: ββββββββββββββββββββββββββββββββββββββββ 16.6/16.6 MB 9.0 MB/s 0:00:01
:: Downloading lxml-6.1.0-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl (5.2 MB)
:: ββββββββββββββββββββββββββββββββββββββββ 5.2/5.2 MB 9.0 MB/s 0:00:00
:: Downloading webrtcvad_wheels-2.0.14-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (82 kB)
:: Downloading pillow-12.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.1 MB)
:: ββββββββββββββββββββββββββββββββββββββββ 7.1/7.1 MB 7.1 MB/s 0:00:00
:: Installing collected packages: webrtcvad-wheels, Pillow, numpy, lxml
::
:: Successfully installed Pillow-12.2.0 lxml-6.1.0 numpy-2.3.5 webrtcvad-wheels-2.0.14
:: + '[' -f setup.py ']'
:: + '[' -f pyproject.toml ']'
:: + find /root/parts/bazarr/install -type f -executable -print0
:: + xargs --no-run-if-empty -0 sed -i '1 s|^#\!/root/parts/bazarr/install/bin/python3.13.*$|#!/usr/bin/env python3.13|'
:: ++ set +o
:: ++ grep errexit
:: + opts_state='set +o errexit'
:: + set +e
:: + install_dir=/root/parts/bazarr/install/usr/bin
:: + stage_dir=/root/stage/usr/bin
:: +++ readlink -f /root/parts/bazarr/install/bin/python3.13
:: ++ basename /root/stage/usr/bin/python3.13
:: + basename=python3.13
:: + echo Looking for a Python interpreter called '"python3.13"' in the payload...
:: Looking for a Python interpreter called "python3.13" in the payload...
:: ++ find /root/parts/bazarr/install/usr/bin /root/stage/usr/bin -type f -executable -name python3.13 -print -quit
:: ++ true
:: + payload_python=/root/stage/usr/bin/python3.13
:: + '[' -n /root/stage/usr/bin/python3.13 ']'
:: + echo Found interpreter in payload: '"/root/stage/usr/bin/python3.13"'
:: + installed_python=/root/stage/usr/bin/python3.13
:: + '[' /root/stage/usr/bin/python3.13 = /root/stage/usr/bin/python3.13 ']'
:: + symlink_target=../usr/bin/python3.13
:: + '[' -z ../usr/bin/python3.13 ']'
:: + eval 'set +o errexit'
:: ++ set +o errexit
:: + ln -sf ../usr/bin/python3.13 /root/parts/bazarr/install/bin/python3.13
:: Found interpreter in payload: "/root/stage/usr/bin/python3.13"
Skipping pull for bazarr (already ran)
Skipping build for bazarr (already ran)
Staging bazarr (required to build 'test3')
Building test3
:: + python3 -V
:: Python 3.13.13
:: + pip list
:: Traceback (most recent call last):
:: File "/root/stage/bin/pip", line 3, in <module>
:: from pip._internal.cli.main import main
:: ModuleNotFoundError: No module named 'pip'
'override-build' in part 'test3' failed with code 1.
Detailed information:
:: + python3 -V
:: + pip list
:: Traceback (most recent call last):
:: File "/root/stage/bin/pip", line 3, in <module>
:: from pip._internal.cli.main import main
:: ModuleNotFoundError: No module named 'pip'
Recommended resolution: Review the scriptlet and make sure it's correct.
Info:
I edited my previous post ; with python3.13 it builds but does NOT run (no modules loaded even not pip)