Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1188642

Bug#1064973: diffoscope fails with struct.error: unpack requires a buffer of 4 bytes

From "Chris Lamb" <chris@reproducible-builds.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1064973: diffoscope fails with struct.error: unpack requires a buffer of 4 bytes
Date 2024-03-01 15:20 +0100
Message-ID <IdbTX-dHLm-1@gated-at.bofh.it> (permalink)
References <IcuFk-deZH-15@gated-at.bofh.it> <IcuFk-deZH-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Zbigniew Jędrzejewski-Szmek wrote:

>   File 
> "/usr/lib/python3.12/site-packages/diffoscope/comparators/python.py", 
> line 74, in parse_pyc
>     modtime = time.asctime(time.gmtime(struct.unpack("<L", moddate)[0]))
>                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> struct.error: unpack requires a buffer of 4 bytes

I'm trying to track this down further so I can fix the underlying
problem. However, I'm having difficulty reproducing locally. In the
first instance, it would be helpful to know exactly which file within
the .rpm is the one (previously) causing the traceback.

Can you run diffoscope --debug so we can see which .pyc file is the
offending one? I think it is "environment.cpython-312.pyc", but it
would be great to get confirmation. Also knowing your exact Python
version (using python3 --version) would be useful withal.


Best wishes,

-- 
      o
    ⬋   ⬊      Chris Lamb
   o     o     reproducible-builds.org 💠
    ⬊   ⬋
      o

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1064973: diffoscope fails with struct.error: unpack requires a buffer of 4 bytes Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2024-02-28 17:10 +0100
  Bug#1064973: diffoscope fails with struct.error: unpack requires a buffer of 4 bytes "Chris Lamb" <lamby@debian.org> - 2024-02-29 12:40 +0100
    Bug#1064973: diffoscope fails with struct.error: unpack requires a buffer of 4 bytes Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2024-02-29 13:30 +0100
  Bug#1064973: diffoscope fails with struct.error: unpack requires a buffer of 4 bytes "Chris Lamb" <chris@reproducible-builds.org> - 2024-03-01 15:20 +0100
  Bug#1064973: diffoscope fails with struct.error: unpack requires a buffer of 4 bytes "Chris Lamb" <lamby@debian.org> - 2024-03-01 18:10 +0100

csiph-web