Bug#1053573: libpython3.11-testsuite install fails due to syntax error: 'uft-8' in /usr/lib/python3.11/test/tokenizedata/bad_coding.py

2023-10-06 Thread Albedo Black
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-tk3.11.5-1

-- no debconf information


Bug#1053573: libpython3.11-testsuite install fails due to syntax error: 'uft-8' in /usr/lib/python3.11/test/tokenizedata/bad_coding.py

2023-10-09 Thread gregor herrmann
On Fri, 06 Oct 2023 14:43:14 -0400, Albedo Black wrote:

> 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


> $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

According to the changelog [0] this was fixed in 3.11.6-3, and I
didn't encounter any problems when upgrading from 3.11.5-3 to
3.11.6-3, so I think this bug can be closed at version 3.11.6-3.


Cheers,
gregor


[0] 
https://tracker.debian.org/news/1469422/accepted-python311-3116-3-source-into-unstable/

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   


signature.asc
Description: Digital Signature


Bug#1053573: libpython3.11-testsuite install fails due to syntax error: 'uft-8' in /usr/lib/python3.11/test/tokenizedata/bad_coding.py

2023-10-09 Thread Albedo Black
Sounds good to me! thanks!

On Mon, Oct 9, 2023, 11:19 gregor herrmann  wrote:

> On Fri, 06 Oct 2023 14:43:14 -0400, Albedo Black wrote:
>
> > 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
>
>
> > $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
>
> According to the changelog [0] this was fixed in 3.11.6-3, and I
> didn't encounter any problems when upgrading from 3.11.5-3 to
> 3.11.6-3, so I think this bug can be closed at version 3.11.6-3.
>
>
> Cheers,
> gregor
>
>
> [0]
> https://tracker.debian.org/news/1469422/accepted-python311-3116-3-source-into-unstable/
>
> --
>  .''`.  https://info.comodo.priv.at -- Debian Developer
> https://www.debian.org
>  : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649
> AA06
>  `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation
> Europe
>`-
>