Draft: Fix/frontend
@jiahong got following error when try to install wendelin by following https://wendelin.nexedi.com/wendelin-HowTo.Install.Wendelin.Standalone
seems we need to backport again some fix for apache-frontend
2026-01-27 11:29:35 slapos[522104] INFO Processing software releases...
2026-01-27 11:29:35 slapos[522104] INFO Installing software release https://lab.nexedi.com/nexedi/slapos/raw/1.0.135.2/software/apache-frontend/software.cfg ...
2026-01-27 11:29:54 slapos[522104] INFO networkcache: Trying to download pypi:setuptools=40.4.3 from network cache...
2026-01-27 11:29:54 slapos[522104] INFO Getting distribution for 'setuptools==40.4.3'.
2026-01-27 11:29:54 slapos[522104] INFO error: subprocess-exited-with-error
2026-01-27 11:29:54 slapos[522104] INFO
2026-01-27 11:29:54 slapos[522104] INFO × python setup.py egg_info did not run successfully.
2026-01-27 11:29:54 slapos[522104] INFO │ exit code: 1
2026-01-27 11:29:54 slapos[522104] INFO ╰─> [12 lines of output]
2026-01-27 11:29:54 slapos[522104] INFO Traceback (most recent call last):
2026-01-27 11:29:54 slapos[522104] INFO File "<string>", line 2, in <module>
2026-01-27 11:29:54 slapos[522104] INFO File "<pip-setuptools-caller>", line 14, in <module>
2026-01-27 11:29:54 slapos[522104] INFO File "/tmp/pip-req-build-_2qt7rpu/setuptools/__init__.py", line 16, in <module>
2026-01-27 11:29:54 slapos[522104] INFO from setuptools.dist import Distribution, Feature
2026-01-27 11:29:54 slapos[522104] INFO File "/tmp/pip-req-build-_2qt7rpu/setuptools/dist.py", line 24, in <module>
2026-01-27 11:29:54 slapos[522104] INFO from setuptools.depends import Require
2026-01-27 11:29:54 slapos[522104] INFO File "/tmp/pip-req-build-_2qt7rpu/setuptools/depends.py", line 7, in <module>
2026-01-27 11:29:54 slapos[522104] INFO from .py33compat import Bytecode
2026-01-27 11:29:54 slapos[522104] INFO File "/tmp/pip-req-build-_2qt7rpu/setuptools/py33compat.py", line 55, in <module>
2026-01-27 11:29:54 slapos[522104] INFO unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
2026-01-27 11:29:54 slapos[522104] INFO AttributeError: 'HTMLParser' object has no attribute 'unescape'
2026-01-27 11:29:54 slapos[522104] INFO [end of output]
2026-01-27 11:29:54 slapos[522104] INFO
2026-01-27 11:29:54 slapos[522104] INFO note: This error originates from a subprocess, and is likely not a problem with pip.
2026-01-27 11:29:54 slapos[522104] INFO error: metadata-generation-failed
2026-01-27 11:29:54 slapos[522104] INFO
2026-01-27 11:29:54 slapos[522104] INFO × Encountered error while generating package metadata.
2026-01-27 11:29:54 slapos[522104] INFO ╰─> See above for output.
2026-01-27 11:29:54 slapos[522104] INFO
2026-01-27 11:29:54 slapos[522104] INFO note: This is an issue with the package mentioned above, not pip.
2026-01-27 11:29:54 slapos[522104] INFO hint: See above for details.
2026-01-27 11:29:55 slapos[522104] INFO While:
2026-01-27 11:29:55 slapos[522104] INFO Bootstrapping.
2026-01-27 11:29:55 slapos[522104] INFO Base installation request: 'zc.buildout', 'slapos.libnetworkcache'
2026-01-27 11:29:55 slapos[522104] INFO Requirement of slapos.libnetworkcache==0.20: setuptools
2026-01-27 11:29:55 slapos[522104] INFO Requirement of zc.buildout==2.7.1+slapos001: setuptools>=8.0
2026-01-27 11:29:55 slapos[522104] INFO Getting distribution for 'setuptools==40.4.3'.
2026-01-27 11:29:55 slapos[522104] INFO
2026-01-27 11:29:55 slapos[522104] INFO An internal error occurred due to a bug in either zc.buildout or in a
2026-01-27 11:29:55 slapos[522104] INFO recipe being used:
2026-01-27 11:29:55 slapos[522104] INFO Traceback (most recent call last):
2026-01-27 11:29:55 slapos[522104] INFO File "/opt/slapos/eggs/zc.buildout-3.0.1+slapos010-py3.9.egg/zc/buildout/buildout.py", line 2668, in main
2026-01-27 11:29:55 slapos[522104] INFO getattr(buildout, command)(args)
2026-01-27 11:29:55 slapos[522104] INFO File "/opt/slapos/eggs/zc.buildout-3.0.1+slapos010-py3.9.egg/zc/buildout/buildout.py", line 748, in bootstrap
2026-01-27 11:29:55 slapos[522104] INFO ws = zc.buildout.easy_install.install(
2026-01-27 11:29:55 slapos[522104] INFO File "/opt/slapos/eggs/zc.buildout-3.0.1+slapos010-py3.9.egg/zc/buildout/easy_install.py", line 1179, in install
2026-01-27 11:29:55 slapos[522104] INFO return installer.install(specs, working_set, patch_dict=patch_dict)
2026-01-27 11:29:55 slapos[522104] INFO File "/opt/slapos/eggs/zc.buildout-3.0.1+slapos010-py3.9.egg/zc/buildout/easy_install.py", line 891, in install
2026-01-27 11:29:55 slapos[522104] INFO for dist in self._get_dist(req, ws):
2026-01-27 11:29:55 slapos[522104] INFO File "/opt/slapos/eggs/zc.buildout-3.0.1+slapos010-py3.9.egg/zc/buildout/easy_install.py", line 712, in _get_dist
2026-01-27 11:29:55 slapos[522104] INFO dists = [_move_to_eggs_dir_and_compile(dist, self._dest, self)]
2026-01-27 11:29:55 slapos[522104] INFO File "/opt/slapos/eggs/zc.buildout-3.0.1+slapos010-py3.9.egg/zc/buildout/easy_install.py", line 2203, in _move_to_eggs_dir_and_compile
2026-01-27 11:29:55 slapos[522104] INFO [tmp_loc] = call_pip_wheel(dist.location, tmp_dest, options)
2026-01-27 11:29:55 slapos[522104] INFO File "/opt/slapos/eggs/zc.buildout-3.0.1+slapos010-py3.9.egg/zc/buildout/easy_install.py", line 2098, in call_pip_wheel
2026-01-27 11:29:55 slapos[522104] INFO call_pip_command(['wheel', '-w', dest], [spec], options)
2026-01-27 11:29:55 slapos[522104] INFO File "/opt/slapos/eggs/zc.buildout-3.0.1+slapos010-py3.9.egg/zc/buildout/easy_install.py", line 2039, in call_pip_command
2026-01-27 11:29:55 slapos[522104] INFO subprocess.check_call(args, env=env)
2026-01-27 11:29:55 slapos[522104] INFO File "/opt/slapos/parts/python3/lib/python3.9/subprocess.py", line 373, in check_call
2026-01-27 11:29:55 slapos[522104] INFO raise CalledProcessError(retcode, cmd)
2026-01-27 11:29:55 slapos[522104] INFO subprocess.CalledProcessError: Command '['/opt/slapos/parts/python3/bin/python3', '-m', 'pip', 'wheel', '-w', '/opt/slapgrid/0b0e374b89c710cdef356b25ee09111b/eggs/tmpyoe0s64l', '--no-deps', '-q', '--no-index', '--no-build-isolation', '--no-cache-dir', '/tmp/tmpndq9p7xyget_dist/setuptools-40.4.3.zip']' returned non-zero exit status 1.
2026-01-27 11:29:55 slapos[522104] ERROR Failed to run buildout profile in directory '/opt/slapgrid/0b0e374b89c710cdef356b25ee09111b'
2026-01-27 11:29:55 slapos[522104] INFO Finished software releases.