Package: libpython3.11-testsuite
Version: 3.11.6-2
Severity: serious
File: /usr/share/doc/libpython3.11-testsuite
Tags: ftbfs
Justification: makes the package in question unusable or mostly so

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate
***

   * What led up to the situation?
      - Attempted to instally python3.11-full to leverage the
libpython3.11-testsuite library
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
      - purged from system
      - cleared apt cache
      - updated and reattempted to install.
      - attempted installing from source
      - attempted debugging following the trace which led to secondary
issues:

        ```bash
        $sudo dpkg --configure libpython3.11-testsuite
        Setting up libpython3.11-testsuite (3.11.6-2) ...
        File "/usr/lib/python3.11/test/tokenizedata/bad_coding.py", line 0
        SyntaxError: unknown encoding: uft-8
        dpkg: error processing package libpython3.11-testsuite
(--configure):
         installed libpython3.11-testsuite package post-installation script
subprocess returned error exit status 1
        Errors were encountered while processing:
         libpython3.11-testsuite
        ```

    fix appears to be correcting the typo in
`/usr/lib/python3.11/test/tokenizedata/bad_coding.py` adjusting "uft-8" to
    "utf-8" which can be done via sed:

        ```bash
        sudo sed -i 's/uft-8/utf-8/g'
/usr/lib/python3.11/test/tokenizedata/bad_coding.py
        ```

    then removing the BOM from the start of the `bad_coding2.py` file at:

      `/usr/lib/python3.11/test/tokenizedata/bad_coding2.py`

        ```bash
        sed '1s/^\xEF\xBB\xBF//'
/usr/lib/python3.11/test/tokenizedata/bad_coding2.py > /tmp/bad_coding2.py \
        && sudo mv /tmp/bad_coding2.py
/usr/lib/python3.11/test/tokenizedata/bad_coding2.py
        ```

   * What was the outcome of this action?
      - Successfully resolved configuration issue with package allowing
dpgk to finish its processes and complete
      installation. Recommend applying these changes to the package and
testing to validate.


*** End of the template - remove these template lines ***


-- System Information:
Debian Release: trixie/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.4.0-4-amd64 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libpython3.11-testsuite depends on:
ii  net-tools   2.10-0.1
ii  python3.11  3.11.6-2

libpython3.11-testsuite recommends no packages.

Versions of packages libpython3.11-testsuite suggests:
ii  python3-gdbm  3.11.5-1
ii  python3-tk    3.11.5-1

-- no debconf information

Reply via email to