Package: python3-migrate
Version: 0.13.0-3
Severity: grave
Tags: patch
Justification: renders package unusable
X-Debbugs-Cc: debian-b...@neonknight.ch

Dear Maintainer,

When executing migrate on python 3.11 the following error is produced due to 
the deprecation of inspect.getargspec

  File 
"/nix/store/7a8iky58c7smv24ybgw4x592c9hn7rny-python3.11-sqlalchemy-migrate-0.13.0/lib/python3.11/site-packages/migrate/versioning/shell.py",
 line 111, in main
     f_args, f_varargs, f_kwargs, f_defaults = inspect.getargspec(command_func)
                                               ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 
'getargs'?


the fix is as simple as replacing line 111 of shell.py by:

f_args, f_varargs, f_kwargs, f_defaults, _, _, _ = 
inspect.getfullargspec(command_func)

Also see upstream project bug:
https://bugs.launchpad.net/sqlalchemy-migrate/+bug/2003619


-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 6.1.0-7-arm64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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 python3-migrate depends on:
ii  python3             3.11.2-1+b1
ii  python3-decorator   5.1.1-3
ii  python3-pbr         5.10.0-2
ii  python3-six         1.16.0-4
ii  python3-sqlalchemy  1.4.46+ds1-1
ii  python3-sqlparse    0.4.2-1
ii  python3-tempita     0.5.2-7

python3-migrate recommends no packages.

Versions of packages python3-migrate suggests:
pn  python-migrate-doc  <none>

-- no debconf information

Reply via email to