missing py311-setuptools in 25.1.4

Started by zerwes, March 27, 2025, 07:12:56 AM

Previous topic - Next topic
Since 25.1.4 (https://forum.opnsense.org/index.php?msg=233320) the updated installation is missing py311-setuptools.
The package is not available in the repository.
As some monitoring scripts we use rely on this, wee need a fix for this.
Is this a error that will be fixed soon or will the setuptools package be gone for ever?

Thank you for any hints.

FreeBSD abolished the need for runtime dependency of setuptools, but if you insist we can add the package to our build list in tools.git.

Just to be clear: what scripts are we talking about? Official Python scripts found somewhere (with a Link just for reference) or custom scripts you've written yourself?


Thanks,
Franco

Also may I suggest to the OP using a virtual environment instead?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Hello Franco.

Thank you for your reply and explanation.

Quote from: franco on March 27, 2025, 08:37:28 AMJust to be clear: what scripts are we talking about? Official Python scripts found somewhere (with a Link just for reference) or custom scripts you've written yourself?

With my head down, I have to admit that rather the last is the case ...
https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-checkmk/blob/main/files/firmware_status.py


So I will refactor that in order to use a venv (as Patrick suggested in #2)

I don't mind adding it, someone else might ask for it too. We never formally pinned the dependency so it was gone when FreeBSD ports carried out that change which we shipped with 25.1.4.

Now I can point to this forum topic with the full set of information in case we need to go back in the future and reevaluate.  :)


Cheers,
Franco

That should do the trick: https://github.com/opnsense/tools/commit/3966b4b63b4

But you need to install it manually since nothing pulls it automatically.


Cheers,
Franco

Hello Franco

Well, indeed someone else might be missing it too.

I assume it will be available in the repo with the next release?

So thank you for adding it, and manual install is no problem in our case, as the playbook includes a task for this.
In my case I have already merged a PR that runs the script in question in a venv, so I can wait ...

Thank you for your support and explanations

Greetings
Klaus

It's still in the 25.1.3 repo:

# pkg add -f https://pkg.opnsense.org/FreeBSD:14:amd64/25.1/MINT/25.1.3/latest/All/py311-setuptools-63.1.0_1.pkg

But you are correct with 25.1.5 it will be back with just:

# pkg install py311-setuptools


Cheers,
Franco