Package: python3-stsci.distutils Version: 0.3.7-6 Severity: normal Dear Maintainer,
The following errors happend when installing the python3-stsci.distutils package: $ sudo aptitude install python3-stsci.distutils The following NEW packages will be installed: python3-stsci.distutils 0 packages upgraded, 1 newly installed, 0 to remove and 3 not upgraded. Need to get 26.7 kB of archives. After unpacking 112 kB will be used. Get: 1 http://mirrors.ustc.edu.cn/debian sid/main amd64 python3-stsci.distutils all 0.3.7-6 [26.7 kB] Fetched 26.7 kB in 1s (30.3 kB/s) Retrieving bug reports... Done Parsing Found/Fixed information... Done Selecting previously unselected package python3-stsci.distutils. (Reading database ... 589559 files and directories currently installed.) Preparing to unpack .../python3-stsci.distutils_0.3.7-6_all.deb ... Unpacking python3-stsci.distutils (0.3.7-6) ... Setting up python3-stsci.distutils (0.3.7-6) ... File "/usr/lib/python3/dist-packages/stsci/distutils/command/build_optional_ext.py", line 36 except Exception, e: ^ SyntaxError: invalid syntax File "/usr/lib/python3/dist-packages/stsci/distutils/release.py", line 186 print 'Finished adding package to %s.' % PACKAGE_INDEX_URL ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Finished adding package to %s.' % PACKAGE_INDEX_URL)? File "/usr/lib/python3/dist-packages/stsci/distutils/tests/__init__.py", line 27 except OSError, e: ^ SyntaxError: invalid syntax File "/usr/lib/python3/dist-packages/stsci/distutils/command/build_optional_ext.py", line 36 except Exception, e: ^^^^^^^^^^^^ SyntaxError: multiple exception types must be parenthesized dpkg: error processing package python3-stsci.distutils (--configure): installed python3-stsci.distutils package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: python3-stsci.distutils needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) Setting up python3-stsci.distutils (0.3.7-6) ... File "/usr/lib/python3/dist-packages/stsci/distutils/command/build_optional_ext.py", line 36 except Exception, e: ^ SyntaxError: invalid syntax File "/usr/lib/python3/dist-packages/stsci/distutils/release.py", line 186 print 'Finished adding package to %s.' % PACKAGE_INDEX_URL ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Finished adding package to %s.' % PACKAGE_INDEX_URL)? File "/usr/lib/python3/dist-packages/stsci/distutils/tests/__init__.py", line 27 except OSError, e: ^ SyntaxError: invalid syntax File "/usr/lib/python3/dist-packages/stsci/distutils/command/build_optional_ext.py", line 36 except Exception, e: ^^^^^^^^^^^^ SyntaxError: multiple exception types must be parenthesized dpkg: error processing package python3-stsci.distutils (--configure): installed python3-stsci.distutils package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: python3-stsci.distutils -- System Information: Debian Release: bookworm/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, mips Kernel: Linux 5.16.0-local4-rt-amd64 (SMP w/2 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages python3-stsci.distutils depends on: ii python3 3.10.4-1+b1 ii python3-d2to1 0.2.12-3 ii python3-pkg-resources 59.6.0-1.2 python3-stsci.distutils recommends no packages. python3-stsci.distutils suggests no packages. -- no debconf information