Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hp-toolbox No module named 'ui4' (solved)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cameta
Veteran
Veteran


Joined: 04 Aug 2004
Posts: 1320

PostPosted: Wed Aug 17, 2022 11:33 pm    Post subject: hp-toolbox No module named 'ui4' (solved) Reply with quote

Code:
mestres@localhost ~ $ hp-toolbox

HP Linux Imaging and Printing System (ver. 3.22.4)
HP Device Manager ver. 15.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: Fax disabled.
warning: Fax disabled.
warning: Please install version 2.0+ of Reportlab for coverpage support.
error: Fax address book disabled - Python 2.3+ required.
-Traceback (most recent call last):
  File "/usr/share/hplip/ui5/devmgr5.py", line 1990, in StartStopButton_clicked
    result, result_str = cups.cups_operation(cups.stop, GUI_MODE, 'qt4', self, self.cur_printer)
  File "/usr/share/hplip/prnt/cups.py", line 966, in cups_operation
    from ui4 import ui_utils
ModuleNotFoundError: No module named 'ui4'
Aborted
mestres@localhost ~ $

After this hp-toolbox stops

My uses
Code:
ebuild   R    ] net-print/hplip-3.22.4::gentoo  USE="X hpcups kde libnotify (policykit) qt5 scanner snmp -doc -fax -hpijs -libusb0 -minimal -parport -static-ppds" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9" 0 KiB

Any ideas?
_________________
Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual.


Last edited by cameta on Mon Sep 05, 2022 7:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
cameta
Veteran
Veteran


Joined: 04 Aug 2004
Posts: 1320

PostPosted: Tue Aug 23, 2022 10:07 am    Post subject: Reply with quote

An update to hplip-3.22.6 didn't fix the problem.
_________________
Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual.
Back to top
View user's profile Send private message
cameta
Veteran
Veteran


Joined: 04 Aug 2004
Posts: 1320

PostPosted: Sun Aug 28, 2022 9:31 pm    Post subject: Reply with quote

I have run the program with the debug option.
hp-toolbox -g
no more info
Code:
Traceback (most recent call last):
  File "/usr/share/hplip/ui5/devmgr5.py", line 1990, in StartStopButton_clicked
    result, result_str = cups.cups_operation(cups.stop, GUI_MODE, 'qt4', self, self.cur_printer)
  File "/usr/share/hplip/prnt/cups.py", line 966, in cups_operation
    from ui4 import ui_utils
ModuleNotFoundError: No module named 'ui4'
Aborted

I have run the program
Code:
hp-check -t
error: policykit     PolicyKit - Administrative policy framework                  OPTIONAL        -               0.120           MISSING    'policykit needs to be installed'

It gives me an error with policykit.
_________________
Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual.
Back to top
View user's profile Send private message
cameta
Veteran
Veteran


Joined: 04 Aug 2004
Posts: 1320

PostPosted: Fri Sep 02, 2022 11:34 am    Post subject: Reply with quote

Code:
Dependency graph for net-print/hplip-3.22.4
 `--  net-print/hplip-3.22.4  amd64
   `--  net-print/cups-2.4.2-r1  (net-print/cups) amd64
   `--  sys-apps/dbus-1.12.22-r2  (sys-apps/dbus) amd64
   `--  virtual/jpeg-100-r1  (virtual/jpeg) amd64
   `--  net-print/cups-filters-1.28.15  (net-print/cups-filters) amd64  [foomatic]
   `--  virtual/libusb-1-r2  (virtual/libusb) amd64
   `--  virtual/libusb-0-r2  (virtual/libusb) amd64
   `--  dev-lang/python-3.8.13_p6  (>=dev-lang/python-3.8.13) amd64  [threads(+) xml]
   `--  dev-lang/python-3.9.13_p4  (>=dev-lang/python-3.9.12) amd64  [threads(+) xml]
   `--  dev-lang/python-3.10.6_p2  (>=dev-lang/python-3.10.4) amd64  [threads(+) xml]
   `--  media-gfx/sane-backends-1.1.1-r2  (media-gfx/sane-backends) amd64
   `--  dev-libs/openssl-1.1.1q  (dev-libs/openssl) amd64
   `--  net-analyzer/net-snmp-5.9.1-r2  (net-analyzer/net-snmp) amd64
   `--  net-dns/avahi-0.8-r5  (net-dns/avahi) amd64  [dbus python python_single_target_python3_8(-)? python_single_target_python3_9(-)? python_single_target_python3_10(-)?]
   `--  app-text/ghostscript-gpl-9.55.0-r1  (app-text/ghostscript-gpl) amd64
   `--  dev-python/pygobject-3.42.1  (dev-python/pygobject) amd64  [python_targets_python3_8(-)]
   `--  virtual/udev-217-r5  (virtual/udev) amd64
   `--  dev-python/dbus-python-1.2.18  (>=dev-python/dbus-python-1.2.0-r1) amd64  [python_targets_python3_8(-)]
   `--  dev-python/distro-1.7.0  (dev-python/distro) amd64  [python_targets_python3_8(-)]
   `--  dev-python/reportlab-3.6.11  (dev-python/reportlab) amd64  [python_targets_python3_8(-)]
   `--  dev-python/PyQt5-5.15.6  (>=dev-python/PyQt5-5.5.1) amd64  [dbus gui widgets python_targets_python3_8(-)]
   `--  dev-python/notify2-0.3.1-r3  (dev-python/notify2) amd64  [python_targets_python3_8(-)]
   `--  dev-python/pillow-9.2.0  (>=dev-python/pillow-3.1.1) amd64  [python_targets_python3_8(-)]
   `--  kde-misc/skanlite-22.04.3  (kde-misc/skanlite) amd64
   `--  media-gfx/xsane-0.999-r4  (media-gfx/xsane) amd64
   `--  media-gfx/sane-frontends-1.0.14-r6  (media-gfx/sane-frontends) amd64
   `--  sys-auth/polkit-0.120_p20220509  (sys-auth/polkit) amd64
   `--  virtual/pkgconfig-2-r1  (virtual/pkgconfig) amd64
   `--  sys-devel/gnuconfig-20220508  (sys-devel/gnuconfig) amd64
   `--  app-portage/elt-patches-20211104  (>=app-portage/elt-patches-20170815) amd64
   `--  sys-devel/automake-1.16.5  (>=sys-devel/automake-1.16.5) amd64
   `--  sys-devel/autoconf-2.71-r1  (>=sys-devel/autoconf-2.71) amd64
   `--  sys-devel/libtool-2.4.7  (>=sys-devel/libtool-2.4) amd64
[ net-print/hplip-3.22.4 stats: packages (33), max depth (1)

I'm going to rebuild all these packages.
_________________
Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual.
Back to top
View user's profile Send private message
cameta
Veteran
Veteran


Joined: 04 Aug 2004
Posts: 1320

PostPosted: Mon Sep 05, 2022 7:24 pm    Post subject: Reply with quote

Solved after an emerge --update --newuse --deep --with-bdeps=y -qv @world
has updated cups to cups-2.4.2-r2
I don't know if this will have influenced but I have also made the following changes in package.use
Code:
=dev-util/cmake-3.23.3 qt5
=x11-misc/appmenu-gtk-module-0.7.6::gentoo gtk2

_________________
Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum