Your message dated Mon, 1 Mar 2021 15:49:02 +0100
with message-id <[email protected]>
and subject line closing as invalid, not reproducible, no feedback
has caused the Debian Bug report #980906,
regarding libpython3.9: _collections_abc.py :type 'types.GenericAlias' is not 
an acceptable base type
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 [email protected]
immediately.)


-- 
980906: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980906
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libpython3.9
Version: 3.9.1-3
Severity: critical
Justification: breaks the whole system
X-Debbugs-Cc: [email protected]

Dear Maintainer,

after running a normal apt update and apt upgrade I started getting errors from
python3 packages that should also be upgraded:

Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
  File "/usr/lib/python3.9/site.py", line 79, in <module>
    import os
  File "/usr/lib/python3.9/os.py", line 29, in <module>
    from _collections_abc import _check_methods
  File "/usr/lib/python3.9/_collections_abc.py", line 416, in <module>
    class _CallableGenericAlias(GenericAlias):
TypeError: type 'types.GenericAlias' is not an acceptable base type

>From the update log it is visible that first the python3.9 packages were
updates which leds to this error.

If you change the line 416 of the /usr/lib/python3.9/_collections_abc.py file
from:

class _CallableGenericAlias(GenericAlias):

to the type the GenerticAlias represents (Defined at the beginning of the file
as: GenericAlias = type(list[int]):

class _CallableGenericAlias(list[int]):


everything works fine again.

I only have python3.9 and python2.7 installed on my system.

Greetings



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-1-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.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.9 depends on:
ii  libc6                2.31-9
ii  libexpat1            2.2.10-1
ii  libpython3.9-stdlib  3.9.1-3
ii  zlib1g               1:1.2.11.dfsg-2

libpython3.9 recommends no packages.

libpython3.9 suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Control: severity -1 normal

closing as invalid, not reproducible, no feedback

--- End Message ---

Reply via email to