Health check: py37-markupsafe -> missing dependency python37

Started by Marcel_75, September 13, 2022, 09:42:33 AM

Previous topic - Next topic
Hi,

if I run a health check on my OPNsense (latest version 22.7.4) I get the following warning messages:

py37-markupsafe has a missing dependency: python37
py37-markupsafe has a missing dependency: py37-setuptools
py37-markupsafe is missing a required shared library: libpython3.7m.so.1.0


Wondering how to fix this? Do I have to SSH into the machine and manually delete this 'py37-markupsafe'?

Don't remember to install this in the past, but this OPNsense was upgraded since some years now, so it might be a peace of code from some older OPNsense versions?

Thanks for clarification & all the best,
Marcel
The fact that we live at the bottom of a deep gravity well, on the surface of a gas covered planet going around a nuclear fireball 90 million miles away and think this to be normal is obviously some indication of how skewed our perspective tends to be. (Douglas Adams)


Tank you @ bringha :)

It can be as simple as this:

pkg remove py37-markupsafe

Which makes me wonder a bit though: Wouldn't it make sense that this just happens automatically in one of the upcoming updates/upgrades?

After all, there doesn't seem to be any negative impact, since a newer Python version (Python 3.9.13) is in use by now?

Thanks & greetings
The fact that we live at the bottom of a deep gravity well, on the surface of a gas covered planet going around a nuclear fireball 90 million miles away and think this to be normal is obviously some indication of how skewed our perspective tends to be. (Douglas Adams)

The initial bug triggering this is in the FreeBSD package manager when the "MarkupSafe" package was renamed to "markupsafe". Apparently it did not set automatic flag when reinstalling the automatic package making it "stick" in the install.

Most of this is package manager territory and behaviour and the time to script a "solution" has long passed as this was an issue in 2020... https://github.com/freebsd/pkg/issues/1917


Cheers,
Franco