Troubleshoot Errors

ImportError:No Module named 'cupsext'

Notes:

Extension modules are missing from the current Python path "/usr/lib/python<version>/dist-packages".
This happens when HPLIP is installed using one python version and you are running HPLIP using another python version.
For example, HPLIP was installed using python2.x and running the tools using python3.x

With the CUPS LogLevel set to debug, the CUPS error_log will show all programs that are executed during the print job. Generally there are two data paths taken during a print job; 1) HPIJS driver path 2) Postscript driver path. Both data paths will use the "hp" backend.

For the HPIJS path, look for errors near the ghostscript command (gs) command. The gs command will invoke the HPIJS driver.

For the Postscript path, there will be no gs command. Postscript will be passed directly to the "hp" backend and then to the printer.

At present, installation of dependencies for HPLIP fails in Python3 environment on Fedora distributions due to the above limitation. Till the time Fedora makes DNF available and HPLIP includes support for DNF, users will have to manually install the required dependencies for HPLIP as suggested below:

Cannot launch hp-toolbox on OpenSuse and Fedora

For all the opensuse versions lesser than 13.2 and Fedora versions less than 21, "hp-toolbox" cannot be launched.

hp-toolbox is dependent on the shared library "qt.so", which is not shipped with the package "dbus-1-python3" for Python versions less than 3.4. All the functionalities provided by hp-toolbox work fine through the individual tools like hp-setup, hp-levels, etc.

During dependent package checks on Debian, HPLIP shows xsane installation has failed. This happens due to a tool "/sbin/gnome-menu-blacklist" which is invoked by the package manager tool apt-get is not ported to support Python3 yet.

In most cases, Xsane is installed but a <<< xsane install failure >>> message is displayed due to apt-get returning a non-zero status.