Jump to content


Photo

develop: python3 transition


  • Please log in to reply
371 replies to this topic

Re: develop: python3 transition #301 rantanplan

  • PLi® Contributor
  • 1,816 posts

+83
Good

Posted 28 January 2022 - 22:41

Maybe it's just me.For some reason the openwebif plugin is not working.The folder is there but there are no files *.pyc in it.

I think you need to clean or delete the build folder.
You can delete the openwebif directory separately in the 'work' directory, or just completely clean the build folder and rebuild.



Re: develop: python3 transition #302 Huevos

  • PLi® Contributor
  • 4,250 posts

+158
Excellent

Posted 29 January 2022 - 00:12

Just apply the whole patch.

It stops in do_install.

| rm -r /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python3.9/lib-dynload/__pycache__
| rm: cannot remove '/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python3.9/lib-dynload/__pycache__': No such file or directory
| make: [Makefile:1707: sharedinstall] Error 1 (ignored)

...

| WARNING: Backtrace (BB generated script):
| 	#1: do_install, /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/temp/run.do_install.3860389, line 166
| 	#2: main, /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/temp/run.do_install.3860389, line 240
NOTE: recipe python3-native-3.9.7-r0: task do_install: Failed
ERROR: Task (virtual:native:/home/openvix/5.6/openembedded-core/meta/recipes-devtools/python/python3_3.9.7.bb:do_install) failed with exit code '1'

run.do_install looks like this:

#!/bin/sh

__BITBAKE_LAST_LINE=0

# Emit a useful diagnostic if something fails:
bb_sh_exit_handler() {
    ret=$?
    if [ "$ret" != 0 ]; then
        echo "WARNING: exit code $ret from a shell command."
    fi
    exit $ret
}

bb_bash_exit_handler() {
    ret=$?
    { set +x; } > /dev/null
    trap "" DEBUG
    if [ "$ret" != 0 ]; then
        echo "WARNING: ${BASH_SOURCE[0]}:${__BITBAKE_LAST_LINE} exit $ret from '$1'"

        echo "WARNING: Backtrace (BB generated script): "
        for i in $(seq 1 $((${#FUNCNAME[@]} - 1))); do
            if [ "$i" -eq 1 ]; then
                echo -e "	#$((i)): ${FUNCNAME[$i]}, ${BASH_SOURCE[$((i-1))]}, line ${__BITBAKE_LAST_LINE}"
            else
                echo -e "	#$((i)): ${FUNCNAME[$i]}, ${BASH_SOURCE[$((i-1))]}, line ${BASH_LINENO[$((i-1))]}"
            fi
        done
    fi
    exit $ret
}

bb_bash_debug_handler() {
    local line=${BASH_LINENO[0]}
    # For some reason the DEBUG trap trips with lineno=1 when scripts exit; ignore it
    if [ "$line" -eq 1 ]; then
        return
    fi

    # Track the line number of commands as they execute. This is so we can have access to the failing line number
    # in the EXIT trap. See http://gnu-bash.2382.n7.nabble.com/trap-echo-quot-trap-exit-on-LINENO-quot-EXIT-gt-wrong-linenumber-td3666.html
    if [ "${FUNCNAME[1]}" != "bb_bash_exit_handler" ]; then
        __BITBAKE_LAST_LINE=$line
    fi
}

case $BASH_VERSION in
"") trap 'bb_sh_exit_handler' 0
    set -e
    ;;
*)  trap 'bb_bash_exit_handler "$BASH_COMMAND"' 0
    trap '{ bb_bash_debug_handler; } 2>/dev/null' DEBUG
    set -e
    shopt -s extdebug
    ;;
esac
export AR="ar"
export AS="as "
export BUILD_AR="ar"
export BUILD_AS="as "
export BUILD_CC="gcc "
export BUILD_CCLD="gcc "
export BUILD_CFLAGS="-isystem/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include -O2 -pipe"
export BUILD_CPP="gcc  -E"
export BUILD_CPPFLAGS="-isystem/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include"
export BUILD_CXX="g++ "
export BUILD_CXXFLAGS="-isystem/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include -O2 -pipe"
export BUILD_FC="gfortran "
export BUILD_LD="ld "
export BUILD_LDFLAGS="-L/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib                         -L/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib                         -Wl,-O1"
export BUILD_NM="nm"
export BUILD_RANLIB="ranlib"
export BUILD_STRIP="strip"
export CC="gcc "
export CCLD="gcc "
export CC_FOR_BUILD="gcc "
export CFLAGS="-isystem/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include -O2 -pipe"
export CFLAGS_FOR_BUILD="-isystem/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include -O2 -pipe"
export CONFIG_SITE="/home/openvix/5.6/openembedded-core/meta/site/endian-little /home/openvix/5.6/openembedded-core/meta/site/common-linux /home/openvix/5.6/openembedded-core/meta/site/common-glibc /home/openvix/5.6/openembedded-core/meta/site/x86_64-linux /home/openvix/5.6/openembedded-core/meta/site/common /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/share/x86_64-linux_config_site.d/ncurses_config"
export CPP="gcc  -E"
export CPPFLAGS="-isystem/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include -I/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include/ncursesw -I/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include/uuid"
export CPPFLAGS_FOR_BUILD="-isystem/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include"
export CPP_FOR_BUILD="gcc  -E"
export CROSSPYTHONPATH="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python3.9/lib-dynload/"
export CXX="g++ "
export CXXFLAGS="-isystem/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include -O2 -pipe"
export CXXFLAGS_FOR_BUILD="-isystem/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include -O2 -pipe"
export CXX_FOR_BUILD="g++ "
unset DISTRO
export FC="gfortran "
export GIT_CEILING_DIRECTORIES="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0"
export HOME="/home/openvix"
export LC_ALL="en_US.UTF-8"
export LD="ld "
export LDFLAGS="-L/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib                         -L/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib                         -Wl,-O1"
export LDFLAGS_FOR_BUILD="-L/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib                         -L/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib                         -Wl,-O1"
export LD_FOR_BUILD="ld "
export LOGNAME="openvix"
unset MACHINE
export MAKE="make"
export NM="nm"
export OBJCOPY="objcopy"
export OBJDUMP="objdump"
export OMP_NUM_THREADS="32"
export PATH="/home/openvix/5.6/openembedded-core/scripts/native-intercept:/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/bin/python3-native:/home/openvix/5.6/openembedded-core/scripts:/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/bin:/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/sbin:/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/bin:/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/sbin:/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/bin:/home/openvix/5.6/bitbake/bin:/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/hosttools"
export PKG_CONFIG_DIR="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/pkgconfig"
export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
export PKG_CONFIG_LIBDIR="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/pkgconfig"
export PKG_CONFIG_PATH="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/pkgconfig:/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/share/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR=""
unset PKG_CONFIG_SYSTEM_INCLUDE_PATH
unset PKG_CONFIG_SYSTEM_LIBRARY_PATH
export PSEUDO_DISABLED="1"
export PSEUDO_UNLOAD="1"
export RANLIB="ranlib"
export READELF="readelf"
unset SHELL
export STRINGS="strings"
export STRIP="strip"
unset TARGET_ARCH
export TZ="UTC"
export USER="openvix"
export base_bindir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/bin"
export base_libdir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib"
export base_prefix="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native"
export base_sbindir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/sbin"
export bindir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/bin"
export datadir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/share"
export docdir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/share/doc"
export exec_prefix="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr"
export includedir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include"
export infodir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/share/info"
export libdir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib"
export libexecdir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/libexec"
export localstatedir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/var"
export lt_cv_sys_lib_dlsearch_path_spec="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib /lib /lib64 /usr/lib /usr/lib64"
export mandir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/share/man"
export nonarch_base_libdir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib"
export nonarch_libdir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib"
export oldincludedir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include"
export prefix="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr"
export sbindir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/sbin"
export servicedir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/srv"
export sharedstatedir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/com"
export sysconfdir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/etc"
export systemd_system_unitdir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib/systemd/system"
export systemd_unitdir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/lib/systemd"
export systemd_user_unitdir="/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/systemd/user"

# line: 1, file: autogenerated
do_install() {
        /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/check_build_completeness.py /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/temp/log.do_compile
    autotools_do_install
        # Make sure we use /usr/bin/env python
        for PYTHSCRIPT in `grep -rIl /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/bin/python3-native/python /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/bin/python3-native`; do
                sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT
        done
        # Add a symlink to the native Python so that scripts can just invoke
        # "nativepython" and get the right one without needing absolute paths
        # (these often end up too long for the #! parser in the kernel as the
        # buffer is 128 bytes long).
        ln -s python3-native/python3 /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/bin/nativepython3
        for c in /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image//home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python3.9/_sysconfigdata*.py; do
            python3 /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/reformat_sysconfig.py $c
        done
        rm /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python3.9/__pycache__/_sysconfigdata*.cpython*

        mkdir -p /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python-sysconfigdata
        sysconfigfile=`find /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image -name _sysconfig*.py`
        cp $sysconfigfile /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python-sysconfigdata/_sysconfigdata.py

        sed -i  \
                -e "s,^ 'LIBDIR'.*, 'LIBDIR': '/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib'\,,g" \
                -e "s,^ 'INCLUDEDIR'.*, 'INCLUDEDIR': '/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include'\,,g" \
                -e "s,^ 'CONFINCLUDEDIR'.*, 'CONFINCLUDEDIR': '/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include'\,,g" \
                -e "/^ 'INCLDIRSTOMAKE'/{N; s,/usr/include,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include,g}" \
                -e "/^ 'INCLUDEPY'/s,/usr/include,/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include,g" \
                /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python-sysconfigdata/_sysconfigdata.py

        # Unfortunately the following pyc files are non-deterministc due to 'frozenset'
        # being written without strict ordering, even with PYTHONHASHSEED = 0
        # Upstream is discussing ways to solve the issue properly, until then let's
        # just not install the problematic files.
        # More info: http://benno.id.au/blog/2013/01/15/python-determinism
        rm /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python3.9/test/__pycache__/test_range.cpython*
        rm /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python3.9/test/__pycache__/test_xml_etree.cpython*
    if [ -e /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/usr/lib/python3.9/test ]; then
      rm -rf /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/usr/lib/python3.9/test
    fi
    if [ -e /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/usr/lib/python3.9/lib2to3/tests ]; then
      rm -rf /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/usr/lib/python3.9/lib2to3/tests
    fi
}

# line: 242, file: /home/openvix/5.6/openembedded-core/meta/classes/autotools.bbclass
autotools_do_install() {
	oe_runmake 'DESTDIR=/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image' install
	# Info dir listing isn't interesting at this point so remove it if it exists.
	if [ -e "/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/share/info/dir" ]; then
		rm -f /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/share/info/dir
	fi
}

# line: 64, file: /home/openvix/5.6/openembedded-core/meta/classes/base.bbclass
oe_runmake() {
	oe_runmake_call "$@" || die "oe_runmake failed"
}

# line: 55, file: /home/openvix/5.6/openembedded-core/meta/classes/base.bbclass
die() {
	bbfatal_log "$*"
}

# line: 59, file: /home/openvix/5.6/openembedded-core/meta/classes/base.bbclass
oe_runmake_call() {
	bbnote make -j 8   STAGING_LIBDIR=/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib   STAGING_INCDIR=/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include   LIB=lib  "$@"
	make -j 8   STAGING_LIBDIR=/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib   STAGING_INCDIR=/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/include   LIB=lib  "$@"
}

# line: 66, file: /home/openvix/5.6/openembedded-core/meta/classes/logging.bbclass
bbfatal_log() {
	if [ -p /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/temp/fifo.3860389 ] ; then
		printf "%b\0" "bbfatal_log $*" > /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/temp/fifo.3860389
	else
		echo "ERROR: $*"
	fi
	exit 1
}

# line: 21, file: /home/openvix/5.6/openembedded-core/meta/classes/logging.bbclass
bbnote() {
	if [ -p /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/temp/fifo.3860389 ] ; then
		printf "%b\0" "bbnote $*" > /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/temp/fifo.3860389
	else
		echo "NOTE: $*"
	fi
}

cd '/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/build'
do_install

# cleanup
ret=$?
trap '' 0
exit $ret

Line 166 is this:

rm /home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python3.9/__pycache__/_sysconfigdata*.cpython*

 



Re: develop: python3 transition #303 WanWizard

  • PLi® Core member
  • 68,673 posts

+1,740
Excellent

Posted 29 January 2022 - 00:31

That line in do_installs attempts to cleanup __pycache__, but with the patch that directory is never created, so the rm fails on "directory does not exist".


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: develop: python3 transition #304 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 29 January 2022 - 01:11

See the next commit after enabling "legacy" filenames and locations.

 

https://github.com/O...54fc0ddabdffe06

 

On prepend add the "missing __pycache__" and files that build "expects" to be there ;)

 

# add dummy __pycache__ files to make happy rm later...
do_install_prepend() {
    mkdir -p ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__
    touch ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_range.cpython
    touch ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_xml_etree.cpython
}

 

BTW, if folder __pycache__ is missing, you already know that patch worked!


Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: develop: python3 transition #305 Ev0

  • Senior Member
  • 102 posts

+7
Neutral

Posted 29 January 2022 - 01:26

Maybe it's just me.For some reason the openwebif plugin is not working.The folder is there but there are no files *.pyc in it.

Not just you, seems to be missing in the latest OpenBh, but only on Vu+ boxes for some reason.



Re: develop: python3 transition #306 rantanplan

  • PLi® Contributor
  • 1,816 posts

+83
Good

Posted 29 January 2022 - 03:44

cd '/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/build'

I'm not sure if it's important, but actually python is available here in version 3.9.9.



Re: develop: python3 transition #307 Huevos

  • PLi® Contributor
  • 4,250 posts

+158
Excellent

Posted 29 January 2022 - 22:01

See the next commit after enabling "legacy" filenames and locations.

 

https://github.com/O...54fc0ddabdffe06

 

On prepend add the "missing __pycache__" and files that build "expects" to be there ;)

# add dummy __pycache__ files to make happy rm later...
do_install_prepend() {
    mkdir -p ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__
    touch ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_range.cpython
    touch ${D}${libdir}/python${PYTHON_MAJMIN}/test/__pycache__/test_xml_etree.cpython
}

BTW, if folder __pycache__ is missing, you already know that patch worked!

I think I am about to have a mental breakdown. :(

do_install:prepend() {
    echo "Folder D '${D}/usr/lib/${PYTHON_DIR}/__pycache__'"
    echo "Folder S '${S}/usr/lib/${PYTHON_DIR}/__pycache__'"
    mkdir -p ${D}/usr/lib/${PYTHON_DIR}/__pycache__
    touch ${D}/usr/lib/${PYTHON_DIR}/__pycache__/_sysconfigdata.cpython
}

Here is the debug output:

| Folder D '/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/usr/lib/python3.9/__pycache__'
| Folder S '/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/Python-3.9.7/usr/lib/python3.9/__pycache__'

And here is the error:

| rm: cannot remove '/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/image/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/recipe-sysroot-native/usr/lib/python3.9/__pycache__/_sysconfigdata*.cpython*': No such file or directory

The paths don't match. So what do I need in my "prepend" so the paths match?



Re: develop: python3 transition #308 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 29 January 2022 - 22:24

Have a look here: https://github.com/o...3_3.9.9.bb#L167

do_install:append() {
        for c in ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py; do
            python3 ${WORKDIR}/reformat_sysconfig.py $c
        done
        rm ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/_sysconfigdata*.cpython*

So you need that:

do_install:prepend() {
    mkdir -p ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__
    touch ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/_sysconfigdata.cpython
}

PS. Don't forget those ... https://github.com/o....9.bb#L186-L187


Edited by athoik, 29 January 2022 - 22:27.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: develop: python3 transition #309 Huevos

  • PLi® Contributor
  • 4,250 posts

+158
Excellent

Posted 30 January 2022 - 05:07

Have a look here: https://github.com/o...3_3.9.9.bb#L167

do_install:append() {
        for c in ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py; do
            python3 ${WORKDIR}/reformat_sysconfig.py $c
        done
        rm ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/_sysconfigdata*.cpython*

So you need that:

do_install:prepend() {
    mkdir -p ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__
    touch ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/_sysconfigdata.cpython
}

PS. Don't forget those ... https://github.com/o....9.bb#L186-L187

Thanks. I have it working in my local build now.

 

So with this patch the current patch on oe-alliance would no longer be needed?



Re: develop: python3 transition #310 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 30 January 2022 - 08:40

That patch bring us back to previous situation.

Enjoy..
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: develop: python3 transition #311 Huevos

  • PLi® Contributor
  • 4,250 posts

+158
Excellent

Posted 30 January 2022 - 09:51

Thanks for your help and patience.



Re: develop: python3 transition #312 Huevos

  • PLi® Contributor
  • 4,250 posts

+158
Excellent

Posted 30 January 2022 - 10:01

cd '/home/openvix/5.6/builds/openvix/Py3/vuultimo4k/tmp/work/x86_64-linux/python3-native/python3-native-3.9.7-r0/build'

I'm not sure if it's important, but actually python is available here in version 3.9.9.

 

That file is created dynamically so should match whatever is in the build.



Re: develop: python3 transition #313 Huevos

  • PLi® Contributor
  • 4,250 posts

+158
Excellent

Posted 30 January 2022 - 10:37

That patch bring us back to previous situation.

Enjoy..

So in our branch with 3.10 the patch fails. How do I create the byte code patch for that version?

 

I don't know how to use "make regen-importlib".


Edited by Huevos, 30 January 2022 - 10:44.


Re: develop: python3 transition #314 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 30 January 2022 - 11:31

I would try something like this:

MACHINE=vs1500 bitbake python3 -ccleansstate
MACHINE=vs1500 bitbake python3 -cunpack
 
cd /home/brt/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/python3/3.9.7-r0
[brt@localhost Python-3.9.7]$ ./configure
[brt@localhost Python-3.9.7]$ git init
[brt@localhost Python-3.9.7]$ git add -A

apply changes manually in importlib python files, then
 

[brt@localhost Python-3.9.7]$ make regen-importlib
[brt@localhost Python-3.9.7]$ git diff

 
and you should have regenerated byte part in the patch...


True sarcasm doesn't need green font...

Re: develop: python3 transition #315 el bandido

  • Senior Member
  • 364 posts

+13
Neutral

Posted 30 January 2022 - 18:35

Python3 HomeBuild fails on Octagon SF8008 at the very end of the image build. HomeBuild of osmio4kplus completes. Thanks.

Attached Files



Re: develop: python3 transition #316 Huevos

  • PLi® Contributor
  • 4,250 posts

+158
Excellent

Posted 30 January 2022 - 22:38

I would try something like this:
{code]MACHINE=vs1500 bitbake python3 -ccleansstate
MACHINE=vs1500 bitbake python3 -cunpack[/code] 

cd /home/brt/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/python3/3.9.7-r0
[brt@localhost Python-3.9.7]$ ./configure
[brt@localhost Python-3.9.7]$ git init
[brt@localhost Python-3.9.7]$ git add -A

apply changes manually in importlib python files, then
 

[brt@localhost Python-3.9.7]$ make regen-importlib
[brt@localhost Python-3.9.7]$ git diff

 
and you should have regenerated byte part in the patch...

Thanks for this, very helpful.



Re: develop: python3 transition #317 Beeker

  • PLi® Contributor
  • 1,477 posts

+198
Excellent

Posted 1 February 2022 - 12:01

Python3 HomeBuild fails on Octagon SF8008 at the very end of the image build. HomeBuild of osmio4kplus completes. Thanks.

Fixed.


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: develop: python3 transition #318 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 5 February 2022 - 18:09

Mgcamd 1.35a does not start.

root@vuultimo4k:~# /usr/bin/mgcamd135a
/usr/bin/mgcamd135a: /usr/lib/libcrypt.so.1: version `GLIBC_2.4' not found (required by /usr/bin/mgcamd135a)



Re: develop: python3 transition #319 WanWizard

  • PLi® Core member
  • 68,673 posts

+1,740
Excellent

Posted 5 February 2022 - 21:49

Thats the end of mgcamd then, there is no source available so we can't compile it against a newer GLIBC.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: develop: python3 transition #320 Huevos

  • PLi® Contributor
  • 4,250 posts

+158
Excellent

Posted 5 April 2022 - 23:03

I would try something like this:

MACHINE=vs1500 bitbake python3 -ccleansstate
MACHINE=vs1500 bitbake python3 -cunpack
 
cd /home/brt/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/python3/3.9.7-r0
[brt@localhost Python-3.9.7]$ ./configure
[brt@localhost Python-3.9.7]$ git init
[brt@localhost Python-3.9.7]$ git add -A

apply changes manually in importlib python files, then
 

[brt@localhost Python-3.9.7]$ make regen-importlib
[brt@localhost Python-3.9.7]$ git diff

 
and you should have regenerated byte part in the patch...

Ok, so now there is a problem with this patch and I'm out of ideas.

 

Patch was created for OE-Alliance branch 5.1, python 3.10.

 

After updating Ubuntu to 20.04.4 and making a new build from scratch mipsel no longer work. enigma will not start.

 

ARM hardware still works. But on mipsel *.pyc are corrupt. If move *.pyc from ARM hardware to mipsel the files work, but not the ones created for mipsel. Remove the patch and builds ok.

 

I recreated the patch but for some reason importlib.h is missing from the new patch and mipsel is still broken.

 

Any ideas?


Edited by Huevos, 5 April 2022 - 23:04.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users