Package: sqlacodegen
Version: 1.1.6-4
Severity: grave
Tags: upstream fixed-upstream

The package fails to import under Python 3.11 with the following traceback:
Traceback (most recent call last):
  File "/usr/bin/sqlacodegen", line 33, in <module>
    sys.exit(load_entry_point('sqlacodegen==1.1.6', 'console_scripts', 
'sqlacodegen')())
             
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/sqlacodegen", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/sqlacodegen/main.py", line 10, in 
<module>
    from sqlacodegen.codegen import CodeGenerator
  File "/usr/lib/python3/dist-packages/sqlacodegen/codegen.py", line 4, in 
<module>
    from inspect import ArgSpec
ImportError: cannot import name 'ArgSpec' from 'inspect' 
(/usr/lib/python3.11/inspect.py)

The issue seems to have been fixed in the latest release candidate, but that
isn't really suitable for bookworm during the freeze, so the intent of this
bug is to cause the package to be dropped from the release.

-- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (990, 'testing-security'), (990, 'testing'), (500, 'unstable'), 
(1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-7-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sqlacodegen depends on:
ii  python3             3.11.2-1+b1
ii  python3-inflect     2.1.0-4
ii  python3-sqlalchemy  1.4.46+ds1-1

sqlacodegen recommends no packages.

sqlacodegen suggests no packages.

-- no debconf information

Reply via email to