txdbus icon indicating copy to clipboard operation
txdbus copied to clipboard

Tests are broken with Python 3.12 on Debian build

Open goffi-contrib opened this issue 1 year ago • 7 comments

Hello,

I'm writing this ticket for the Debian developer maintaining txdbus on this distribution, for some reason they can't publish here.

The Debian build it failing due to some unpacking error: https://ci.debian.net/packages/t/txdbus/testing/s390x/49118708/

From the debian dev:

I guess it is about endianess. s390x is big endian, TTBOMK. Maybe the tests assume (or fallback to) little endian?

Thanks!

goffi-contrib avatar Jul 21 '24 09:07 goffi-contrib

Note: here are the patches used in Debian to fix the issues: https://salsa.debian.org/python-team/packages/txdbus/-/tree/debian/master/debian/patches?ref_type=heads

goffi-contrib avatar Jul 21 '24 10:07 goffi-contrib

The error states:

 63s AssertionError: b'\x04(ii)\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00' != b'\x04(ii)\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02' : Binary encoding differs from expected value

This definitely sound like the mismatch that one would see when assuming the opposite endianness.

WhyNotHugo avatar Jul 22 '24 09:07 WhyNotHugo

All the errors are quads of bytes in inverted order, so definitely an endiannes issue.

WhyNotHugo avatar Jul 22 '24 09:07 WhyNotHugo

Hello. Is there any plan to fix it soon? The package will be removed from Debian testing because of this unfortunately. Thanks.

goffi-contrib avatar Aug 13 '24 08:08 goffi-contrib

Hopefully I can get to it this weekend. I don't currently have a Linux development machine though so I'll probably need to spin up a new VM. Can you recommend a distro with a 3.12 Python package? I've been out of the Linux game for a while so I'm not sure which distros have it available.

Tom

On Tue, Aug 13, 2024 at 3:44 AM Jérôme Poisson @.***> wrote:

Hello. Is there any plan to fix it soon? The package will be removed from Debian testing because of this unfortunately. Thanks.

— Reply to this email directly, view it on GitHub https://github.com/cocagne/txdbus/issues/96#issuecomment-2285698363, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANMW7CTTRKWW3QBNOUF4C3ZRHBQRAVCNFSM6AAAAABLGWRW2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBVGY4TQMZWGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

cocagne avatar Aug 14 '24 04:08 cocagne

Thanks for your quick answer @cocagne .

According to distrowatch 3.12 is available on Debian testing (Trixie): https://distrowatch.com/table-mobile.php?distribution=debian

goffi-contrib avatar Aug 14 '24 08:08 goffi-contrib

Alpine 3.20 and ArchLinux both ship Python 3.12.

WhyNotHugo avatar Aug 14 '24 12:08 WhyNotHugo