#1133024 hachoir: Need update to match new organization of urwid python package

#1133024#5
Date:
2026-04-08 20:27:33 UTC
From:
To:
Dear Maintainer,
while trying to run hachoir-urwid on a given file, I got the following
error message

   $ hachoir-urwid myfile
   Traceback (most recent call last):
     File "/usr/bin/hachoir-urwid", line 33, in <module>
       sys.exit(load_entry_point('hachoir==3.1.0', 'console_scripts', 'hachoir-urwid')())
                ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/usr/bin/hachoir-urwid", line 25, in importlib_load_entry_point
       return next(matches).load()
              ~~~~~~~~~~~~~~~~~~^^
     File "/usr/lib/python3.13/importlib/metadata/__init__.py", line 179, in load
       module = import_module(match.group('module'))
     File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
       return _bootstrap._gcd_import(name[level:], package, level)
              ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
     File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
     File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
     File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
     File "<frozen importlib._bootstrap_external>", line 1023, in exec_module
     File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
     File "/usr/lib/python3/dist-packages/hachoir/urwid.py", line 17, in <module>
       import urwid.curses_display
   ModuleNotFoundError: No module named 'urwid.curses_display'


It appears that the urwid packages changed its interface. The following
patch solves the problem (