Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] Python 3 upgrade forces removal of hplip & friends  (Read 2885 times)

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.430
    • Land of the Buckeye
[EN] Re: Python 3 upgrade forces removal of hplip & friends
« Reply #15 on: 2025/01/23, 16:42:21 »
OK, well -- I guess I can be embarrassed now ...

Code: [Select]
don@Hibiscus:~$ sudo apt -s install python3.12

python3.12 is already the newest version (3.12.8-5).
python3.12 set to manually installed.
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

OK. Learned something.   ::)

System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.430
    • Land of the Buckeye
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #16 on: 2025/01/23, 16:45:46 »
Should the python3-pil issue be fixed before installing the hplip packages?
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.430
    • Land of the Buckeye
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #17 on: 2025/01/23, 17:03:18 »
OK, the 2 python3-pil packages are installed, and hplip-data is installed. There is a remaining issue blocking the hplip package. 

Code: [Select]
$ sudo dpkg -i hplip_3.22.10+dfsg0-5.1b_amd64.deb
(Reading database ... 309613 files and directories currently installed.)
Preparing to unpack hplip_3.22.10+dfsg0-5.1b_amd64.deb ...
Unpacking hplip (3.22.10+dfsg0-5.1b) over (3.22.10+dfsg0-5.1b) ...
dpkg: dependency problems prevent configuration of hplip:
 hplip depends on libsane-hpaio (= 3.22.10+dfsg0-5.1); however:
  Package libsane-hpaio is not installed.
 hplip depends on printer-driver-hpcups (= 3.22.10+dfsg0-5.1); however:
  Package printer-driver-hpcups is not installed.
 hplip depends on python3-reportlab; however:
  Package python3-reportlab is not installed.

dpkg: error processing package hplip (--install):
 dependency problems - leaving unconfigured
Processing triggers for dbus (1.16.0-1) ...
Processing triggers for man-db (2.13.0-1) ...
Errors were encountered while processing:
 hplip

Ideas?
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline Teriarch

  • User
  • Posts: 87
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #18 on: 2025/01/23, 17:17:36 »
> Ideas?

Why not install it?

$ sudo apt-get -s install libsane-hpaio printer-driver-hpcups python3-reportlab

(option "-s" just for dry-run, if no problems reported, skip it)

And yes the python3-pil issue is resolved by now.

Offline Teriarch

  • User
  • Posts: 87
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #19 on: 2025/01/23, 17:25:07 »
... and just in case the apt-get fails for some reason, try:

$ sudo apt --fix-broken install

and look for possible removals before you proceed.

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.430
    • Land of the Buckeye
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #20 on: 2025/01/23, 18:09:32 »
Got it.

Code: [Select]
$ sudo apt policy hplip hplip-data
hplip:
  Installed: 3.22.10+dfsg0-5.1b
  Candidate: 3.22.10+dfsg0-5.1b
  Version table:
 *** 3.22.10+dfsg0-5.1b 100
        100 /var/lib/dpkg/status
     3.22.10+dfsg0-5.1 500
        500 https://deb.debian.org/debian unstable/main amd64 Packages
hplip-data:
  Installed: 3.22.10+dfsg0-5.1b
  Candidate: 3.22.10+dfsg0-5.1b
  Version table:
 *** 3.22.10+dfsg0-5.1b 100
        100 /var/lib/dpkg/status
     3.22.10+dfsg0-5.1 500
        500 https://deb.debian.org/debian unstable/main amd64 Packages

I guess I need to go through the hp-check process next.
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.430
    • Land of the Buckeye
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #21 on: 2025/01/23, 18:19:16 »
OK, LaserJet Pro p1606dn is installed, and I am looking at a perfect printer test page.

SUCCESS!

Thank you, @Teriarch -- very nice bit of work!

Here is the hardware, in case it is relevant:

Code: [Select]
System:
  Kernel: 6.12.10-1-siduction-amd64 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.2.5 Distro: siduction 22.1.2 Masters_of_War -
    kde - (202303151559)
Machine:
  Type: Desktop System: ASUS product: All Series v: N/A
    serial: <superuser required>
  Mobo: ASUSTeK model: Z87-WS v: Rev 1.xx serial: <superuser required>
    UEFI: American Megatrends v: 2004 date: 06/05/2014
CPU:
  Info: quad core model: Intel Core i7-4770 bits: 64 type: MT MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 800 min/max: 800/3900 cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 800
Graphics:
  Device-1: NVIDIA GM107 [GeForce GTX 750 Ti] driver: nvidia v: 550.142
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.4
    compositor: kwin_wayland driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia,nvidia-nvswitch
    resolution: 1366x768~60Hz
  API: EGL v: 1.5 drivers: nvidia,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia v: 550.142
    renderer: NVIDIA GeForce GTX 750 Ti/PCIe/SSE2
  API: Vulkan v: 1.4.304 drivers: N/A surfaces: xcb,xlib,wayland
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel 8 Series/C220 Series High Definition Audio
    driver: snd_hda_intel
  Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX]
    driver: snd_hda_intel
  API: ALSA v: k6.12.10-1-siduction-amd64 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active
Network:
  Device-1: Intel I210 Gigabit Network driver: igb
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel I210 Gigabit Network driver: igb
  IF: enp9s0 state: down mac: <filter>
  IF-ID-1: br0 state: up speed: 1000 Mbps duplex: unknown mac: <filter>
Drives:
  Local Storage: total: 2.27 TiB used: 776.4 GiB (33.3%)
  ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB
  ID-2: /dev/sdb vendor: Western Digital model: WD1000DHTZ-04N21V0
    size: 931.51 GiB
  ID-3: /dev/sdc vendor: Western Digital model: WD1000DHTZ-04N21V0
    size: 931.51 GiB
Partition:
  ID-1: / size: 58.72 GiB used: 13.63 GiB (23.2%) fs: ext4 dev: /dev/sda4
  ID-2: /boot size: 537.9 MiB used: 119.3 MiB (22.2%) fs: ext2
    dev: /dev/sda3
  ID-3: /boot/efi size: 511 MiB used: 152 KiB (0.0%) fs: vfat dev: /dev/sda1
  ID-4: /home size: 388.89 GiB used: 155.14 GiB (39.9%) fs: ext4
    dev: /dev/sda5
Swap:
  ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) dev: /dev/sda2
Sensors:
  System Temperatures: cpu: 28.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB available: 31.3 GiB used: 4.07 GiB (13.0%)
  Processes: 338 Uptime: 2h 25m Shell: Bash inxi: 3.3.37
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline Teriarch

  • User
  • Posts: 87
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #22 on: 2025/01/23, 18:57:00 »
Glad it worked!

And just to place my effort into the right perspective: It wasn't much,what I did!
I simply tricked the package manager into being less restrictive.
Sometimes it's overly cautious not to break anything,
when there is nothing to be broken.

But if I may ask for a favor, as a member of the siduction community board you
are in a much better position to suggest to the authors of hplip
the little changes for an intermediate official release. The community would
greatly benefit from the changes, and that is what it's all about.

Have a nice day


Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.430
    • Land of the Buckeye
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #23 on: 2025/01/23, 21:23:02 »
...
But if I may ask for a favor, as a member of the siduction community board you are in a much better position to suggest to the authors of hplip ...

I am flattered to be considered such a strong influencer, and I am willing to do anything I can to help the community.

However, we learned from the bug report in post #8 up this thread, the Debian Printing Team has been asleep since 9 JUL 2024, regarding the last bug reported. So, I don't see a way to wake them up with another report, or other way. Do you have an idea how to do it?
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline debsid

  • User
  • Posts: 36
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #24 on: 2025/01/24, 16:43:55 »
As someone whose printer has stopped working and has not yet tried a workaround, I'd like to support a wake-up call to the developers. It would be a great restoration.

Offline Teriarch

  • User
  • Posts: 87
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #25 on: 2025/01/24, 21:00:05 »
I figured a minimally invasive method to address the problem w/o
modifying the original hplip packages. Hang on for a couple of days...

Offline seasons

  • User
  • Posts: 282
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #26 on: 2025/01/24, 21:09:37 »
You should be able to install python3.12 w/o any removal. Both versions coexist just fine:

That's not the issue for me. The issue is that:
Code: [Select]
hplip : Depends: python3 (< 3.13) but 3.13.1-2 is to be installedSo I do have 3.12 installed as well, but of course, that doesn't make apt happy. I know how to work around that, but I don't need to print anything at the moment, so I'll wait.

I contacted the maintainer (Till Kamppeter) who updated Ubuntu's package, since he is also listed as a Debian maintainer, and I just saw him respond to an unrelated bug a few days ago. Maybe he can speed things along.

Offline eriefisher

  • User
  • Posts: 334
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #27 on: 2025/01/24, 22:21:21 »
Has anyone tried to edit the control file to correct the dependency?

Offline seasons

  • User
  • Posts: 282
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #28 on: 2025/01/24, 22:41:41 »
Till's response:
Quote
Hi,
I am maintainer of the HPLIP package of Ubuntu and I had updated it already to 3.24.x, while at Debian no update had happened and even that I had informed the Debian maintainers that I have updated on Ubuntu, they did not overtake my updated package to Debian. There are also already bug reports in Debian's bug tracker about the need of an update, especially also for the current Python and GCC versions.

So I am CCing now Thorsten Alteholz, Debian maintainer for HPLIP and also the Debian Printing Team.

Also the freezes for the next release of Debian will start in March, so it would be nice to do not have a 2022 version of HPLIP in a 2025 release of Debian.

Offline Teriarch

  • User
  • Posts: 87
Re: Python 3 upgrade forces removal of hplip & friends
« Reply #29 on: 2025/01/24, 23:22:37 »
@seasons & @eriefisher

< That's not the issue for me.

What I meant is that python3.12 and python3.13 can coexist, but hplip unfortunately
depends on python3 (= 3.13). The latest python3-minimal on which python3 depends
contains a symbolic link from /usr/bin/python3 to /usr/bin/python3.13. That's why hplip
fails, even if it could be installed. The easiest way out is to modify the control file
of python 3 to contain an additional provide
Provides: ..., python3 (= 3.12)...
and patch the headers of hplip's python files to #!/usr/bin/python3.12 after the installation.
So no harm is done to the copyright.
But then the user of hplip' modification  is responsible for for an install of python3.12, which as I said
can live together with python3.13 happily ever after...
If you don't want to wait you can test the patch script on the iso live image in a couple of days.