Bug#1034609: Fails to start under Python 3.11
Michael Prokop writes: > * Arto Jantunen [Wed Apr 19, 2023 at 07:49:33PM +0300]: > >> The package fails to import under Python 3.11 with the following traceback: >> Traceback (most recent call last): > [...] >> File "/usr/lib/python3/dist-packages/sqlacodegen/main.py", line 10, in >> >> from sqlacodegen.codegen import CodeGenerator >> File "/usr/lib/python3/dist-packages/sqlacodegen/codegen.py", line 4, in >> >> 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. > > If you don't want to maintain this package or its 1.1.6 version > within bookworm then nevermind my comment :) - but looking at > https://github.com/agronholm/sqlacodegen/issues/239#issuecomment-1457728533 > the fix for this *might* be as simple as replacing: > > from inspect import ArgSpec > > with: > > from inspect import FullArgSpec > > Also see https://docs.python.org/3/whatsnew/changelog.html + > https://docs.python.org/3/library/inspect.html#inspect.getfullargspec > > But given that v1.1.6 was released on 2015-05-15 and not updated > within Debian since then, while upstream relased multiple stable > versions like e.g. v2.3.0 on 2020-07-13, I'd understand your > reasoning to drop this package at least for bookworm. :) Even after patching those and a few smaller issues the upstream testsuite still doesn't pass (seems like a difference in how it expects sqlalchemy to behave, so probably related to the version bookworm has of that). I could skip the test or patch it to pass, but.. I think it's simply too late now, and would just let the package get autoremoved. I plan to upload the latest upstream RC (which I think should work with Python 3.11) to unstable after that has happened. -- Arto Jantunen
Bug#1034609: Fails to start under Python 3.11
* Arto Jantunen [Wed Apr 19, 2023 at 07:49:33PM +0300]: > The package fails to import under Python 3.11 with the following traceback: > Traceback (most recent call last): [...] > File "/usr/lib/python3/dist-packages/sqlacodegen/main.py", line 10, in > > from sqlacodegen.codegen import CodeGenerator > File "/usr/lib/python3/dist-packages/sqlacodegen/codegen.py", line 4, in > > 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. If you don't want to maintain this package or its 1.1.6 version within bookworm then nevermind my comment :) - but looking at https://github.com/agronholm/sqlacodegen/issues/239#issuecomment-1457728533 the fix for this *might* be as simple as replacing: from inspect import ArgSpec with: from inspect import FullArgSpec Also see https://docs.python.org/3/whatsnew/changelog.html + https://docs.python.org/3/library/inspect.html#inspect.getfullargspec But given that v1.1.6 was released on 2015-05-15 and not updated within Debian since then, while upstream relased multiple stable versions like e.g. v2.3.0 on 2020-07-13, I'd understand your reasoning to drop this package at least for bookworm. :) HTH && regards -mika- signature.asc Description: PGP signature
Bug#1034609: Fails to start under Python 3.11
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 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 "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1149, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/usr/lib/python3/dist-packages/sqlacodegen/main.py", line 10, in from sqlacodegen.codegen import CodeGenerator File "/usr/lib/python3/dist-packages/sqlacodegen/codegen.py", line 4, in 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