On 1/25/21 3:13 PM, Antonio Terceiro wrote:
> Control: tags -1 + unreproducible moreinfo
> 
> On Sun, 24 Jan 2021 08:28:21 +0100 lenny <lenni_...@yahoo.de> wrote:
>> Package: libpython3.9
>> Version: 3.9.1-3
>> Severity: critical
>> Justification: breaks the whole system
>> X-Debbugs-Cc: lenni_...@yahoo.de
>>
>> 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.
> 
> Can you please clarify how exactly you run into this? I have just
> upgraded to this version, on a fully up to date sid system, and can't
> reproduce any of this.
> 
> $ dpkg-query --show libpython3.9
> libpython3.9:amd64    3.9.1-3
> $ python3 -c 'import site'
> $ python3 -c 'import os'
> $ python3 -c 'from _collections_abc import _check_methods'
> $ 
> 
> I tried both on my main system, and on a clean sid container, and it
> just works.

I also can't reproduce this.

Note that 3.9.1-2 had the https://bugs.python.org/issue42195 backport, but
3.9.1-3 didn't change anything in that area.

Matthias

Reply via email to