Open adrienbeau opened 6 months ago
The error comes from urwid, no?
I think it comes from hachoir/setup.py
:
"extras_require": {
"urwid": [
"urwid==1.3.1"
],
Hachoir specifically requires this exact old version, dating from way before use_2to3 was dropped from setuptools.
More recent versions of urwid do not have this error.
I don't know why hachoir specifically requires version 1.3.1. It seems to work fine with recent versions of urwid.
I don't know why hachoir specifically requires version 1.3.1. It seems to work fine with recent versions of urwid.
It didn't work with a specific urwid version. I don't recall which one. Do you want to write a change to no longer stick to this version?
hachoir[urwid] requires urwid==1.3.1 (released on 2015-11-02) This produces distutils.errors.DistutilsSetupError: use_2to3 is invalid. use_2to3 was indeed removed from setuptools 58 (released on 2021-09-05)
Software environment:
Commands run:
A workaround (or solution) is to require a more recent (or most recent) version of urwid.
hachoir-urwid works fine for me with the latest urwid (2.6.7).