Your message dated Thu, 12 Oct 2023 08:15:54 +0200
with message-id <ae4285ce-c7ad-4e48-a9f5-9783d6d0e...@debian.org>
and subject line Re: Bug#1053573: libpython3.11-testsuite install fails due to
syntax error: 'uft-8' in /usr/lib/python3.11/test/tokenizedata/bad_coding.py
has caused the Debian Bug report #1053573,
regarding libpython3.11-testsuite install fails due to syntax error: 'uft-8' in
/usr/lib/python3.11/test/tokenizedata/bad_coding.py
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1053573: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053573
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Version: 3.11.6-3
On 06.10.23 20:43, 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
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
--- End Message ---