[Slackbuilds-users] html2text import error
KB_SBo
sbo at linuxgalaxy.org
Thu Jun 18 02:05:48 UTC 2026
Hello,
After reinstalling from scratch, with all deps, and no build errors, the
newer html2text-2025.4.15 now has this import error.
$ html2text --help
Traceback (most recent call last):
File "/usr/bin/html2text", line 5, in <module>
from html2text.cli import main
File "/usr/lib64/python3.9/site-packages/html2text/__init__.py", line
13, in <module>
from ._version import __version_tuple__
ImportError: cannot import name '__version_tuple__' from
'html2text._version'
(/usr/lib64/python3.9/site-packages/html2text/_version.py)
$ python3 --version
Python 3.9.25
** UPDATE via IRC **
<fourtysixandtwo> kingbeowulf: echo "__version_tuple__ = (2025, 4, 15)"
>> /usr/lib64/python3.9/site-packages/html2text/_version.py
<fourtysixandtwo> Urchlay: will need to add ^^ to slackbuild unless
upstream fixes it
fourtysixandtwo> Urchlay: ignore the previous comment, just add
python3-setuptools-scm-opt as a dep...been a while since I had that
issue and forgot that's the solution
<fourtysixandtwo> kingbeowulf: so that's the other option...add
python3-setuptools-scm-opt and rebuild html2text
-> issue is resolved.
-Ed
More information about the SlackBuilds-users
mailing list