Depreciation warning on Debian 13 (Trixie) slim container #281
Replies: 3 comments 1 reply
-
|
did you install via python setup.py or pip install .? I think it can be solved by installing via pip install as outlined: https://github.com/abbbi/virtnbdbackup?tab=readme-ov-file#python-package The official docker images use bookworm, where the python setup.py installation method is not yet treated as deprecated. Its another setup.py is deprecated thing, i guess. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @abbbi, The warning is gone... The only way that pip builds for me and makes virtnbdbackup tools globally available, is by using Remaining dependencies provided by Debian not present as of now ( Here's the relevant output as I'm building now (with all dependencies from Debian): I'll test it for a while, and if I don't find issues in a reasonable amount of time, will do the pull request. If you don't have any observations, feel free to close the discussion ;) Thank you very much for your time! |
Beta Was this translation helpful? Give feedback.
-
|
This is to be expected, as Debian has changed how it deals with non packaged python installations, so have other distributors.. Pls consider sponsoring the project, thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm testing to build the docker image of the current version (2.35) from debian-slim:trixie. It builds just fine, but when I try any command from virtnbdbackup, virtnbdrestore, and virtnbdmap, so far; it throws the following warning before to proceed:
Running with no errors, apparently...
When a backup is made in auto mode, the same warning is repeated a second time, at the very end before to exit.
It even appears when using something so basic as
--versionflag.Certainly, this is not happening with the official docker image (ATM built from debian-slim:bookworm), therefore not an issue right now (and the reason I'm opening this discussion instead of an issue).
However, the docker image will need to be eventually updated to Trixie, and it would become an annoying warning that disrupts logs, at least.
The link provided by the deprecation warning asks to refrain about using
pkg_resources. Unfortunately I'm not used with Python so can't say if it's just an annoyance, or an eventual cause of issues in the short or mid term...The only clues I can provide right now are:
Python version inside Trixie container is 3.13.5 (default provided by apt). I have not tested yet in a non-containerized Debian 13 environment (fresh or upgraded from version 12) but I presume this is replicable outside containers, at least in Debian
I tried a quick test building/installing virtnbdbackup 2.34 in my local (Archlinux) from this AUR pkgbuild. Turns out the fact I don't see that warning, and my python version is 3.13.7!
So, is not that simple as python version. Maybe a punctual dependency, is a problem specific with Debian 13, or just a matter to fix that into the code.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions