Bug#1029043: AttributeError: module 'adonthell' has no attribute 'audio_load_wave'

Carter Sande carter.sande at duodecima.technology
Tue Apr 1 18:40:02 BST 2025


Package: adonthell
Version: 0.3.8-2.1
Followup-For: Bug #1029043
X-Debbugs-Cc: carter.sande at duodecima.technology

Dear Maintainer,

I'm also encountering this issue. It seems to be caused by SWIG 4.1.0
changing the default behavior for static methods in Python modules.

>From /usr/share/doc/swig4.0/CHANGES.current.gz:

2022-03-21: jschueller, jim-easterbrook, wsfulton
            [Python] #2137 C++ static member functions no longer generate a "flattened"
            name in the Python module. For example:

              s = example.Spam()
              s.foo()               # Spam::foo() via an instance
              example.Spam.foo()    # Spam::foo() using class method
              example.Spam_foo()    # Spam::foo() "flattened" name

            The "flattened" name is no longer generated, but can be generated
            by using the new -flatstaticmethod option.

If I add the argument "-flatstaticmethod" to the "${SWIG} -python"
invocations in the package's src/Makefile.in and src/Makefile.am and
rebuild, it seems to fix the issue. (I don't know very much about Debian
packaging, but the current adonthell/debian/patches/python3.10.patch in
Salsa also appears to touch those lines.)

- Carter


-- System Information:
Debian Release: 12.10
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-32-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages adonthell depends on:
ii  libc6                2.36-9+deb12u10
ii  libgcc-s1            12.2.0-14
ii  libpython3.11        3.11.2-6+deb12u5
ii  libsdl2-2.0-0        2.26.5+dfsg-1
ii  libsdl2-mixer-2.0-0  2.6.2+dfsg-2
ii  libsdl2-ttf-2.0-0    2.20.1+dfsg-2
ii  libstdc++6           12.2.0-14
ii  python3              3.11.2-1+b1
ii  zlib1g               1:1.2.13.dfsg-1

Versions of packages adonthell recommends:
ii  adonthell-data  0.3.8-1

adonthell suggests no packages.

-- no debconf information



More information about the Pkg-games-devel mailing list