My Oracle Support Banner

CUPS Error: "HPLIP modules:83902 No module named base.g" (Doc ID 2275411.1)

Last updated on MAY 20, 2020

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64

Symptoms

After a cups upgrade or in a new installation the cups server or the cups, clients are unable to print documents using HPLIP modules.

Using "LogLevel debug" the following errors are visible in the  file /var/log/cups/error_log; It immediately after print a new JOB:

$ grep "Job 24" error_log
I [06/Jun/2017:12:52:30 -0500] [Job 24] Adding start banner page "none".
I [06/Jun/2017:12:52:30 -0500] [Job 24] Queued on "Bearskin_5525" by "root".
D [06/Jun/2017:12:52:30 -0500] [Job 24] Auto-typing file...
D [06/Jun/2017:12:52:30 -0500] [Job 24] Request file type is application/vnd.cups-banner.
I [06/Jun/2017:12:52:30 -0500] [Job 24] File of type application/vnd.cups-banner queued by "root".
I [06/Jun/2017:12:52:30 -0500] [Job 24] Adding end banner page "none".
D [06/Jun/2017:12:52:30 -0500] [Job 24] job-sheets=none,none
D [06/Jun/2017:12:52:30 -0500] [Job 24] argv[0]="Bearskin_5525"
D [06/Jun/2017:12:52:30 -0500] [Job 24] argv[1]="24"
D [06/Jun/2017:12:52:30 -0500] [Job 24] argv[2]="root"
D [06/Jun/2017:12:52:30 -0500] [Job 24] argv[3]="testpri.test1"
D [06/Jun/2017:12:52:30 -0500] [Job 24] argv[4]="1"
D [06/Jun/2017:12:52:30 -0500] [Job 24] argv[5]="finishings=3 media=na_letter_8.5x11in number-up=1 sides=two-sided-long-edge job-uuid=urn:uuid:9b57ab5b-b17d-3af8-44b1-07c09d7a0004 job-originating-host-name=localhost time-at-creation=1496771550 time-at-processing=1496771550 time-at-completed=time-at-completed"
D [06/Jun/2017:12:52:30 -0500] [Job 24] argv[6]="/var/spool/cups/d00024-001"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[2]="CUPS_DOCROOT=/usr/share/cups/www"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[8]="HOME=/var/spool/cups/tmp"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[9]="PATH=/usr/lib/cups/filter:/usr/lib64/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[10]="SERVER_ADMIN=root@tDCsrvPtstOAP02"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[11]="SOFTWARE=CUPS/1.4.2"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[13]="USER=root"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[16]="IPP_PORT=631"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[17]="CHARSET=utf-8"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[18]="LANG=en_US.UTF-8"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[19]="PPD=/etc/cups/ppd/Bearskin_5525.ppd"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[20]="RIP_MAX_CACHE=128m"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[21]="CONTENT_TYPE=application/vnd.cups-banner"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[22]="DEVICE_URI=lpd://10.x.1.2/PASSTHRU"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[23]="PRINTER_INFO=HP Color LaserJet CP5520 (Bearskin office)"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[24]="PRINTER_LOCATION=10.x.1.2"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[25]="PRINTER=Bearskin_5525"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[26]="CUPS_FILETYPE=document"
D [06/Jun/2017:12:52:30 -0500] [Job 24] envp[27]="FINAL_CONTENT_TYPE=printer/Bearskin_5525"
I [06/Jun/2017:12:52:30 -0500] [Job 24] Started filter /usr/lib/cups/filter/bannertops (PID 83900)
I [06/Jun/2017:12:52:30 -0500] [Job 24] Started filter /usr/lib/cups/filter/pstops (PID 83901)
I [06/Jun/2017:12:52:30 -0500] [Job 24] Started filter /usr/lib/cups/filter/hpps (PID 83902)
I [06/Jun/2017:12:52:30 -0500] [Job 24] Started backend /usr/lib/cups/backend/lpd (PID 83903)
D [06/Jun/2017:12:52:30 -0500] [Job 24] load_banner(filename="/var/spool/cups/d00024-001")
D [06/Jun/2017:12:52:30 -0500] [Job 24] Image "images/cups.png " on line 5 of banner file: No such file or directory
D [06/Jun/2017:12:52:30 -0500] [Job 24] STATE: +connecting-to-device
D [06/Jun/2017:12:52:30 -0500] [Job 24] Looking up "10.x.1.2"...
I [06/Jun/2017:12:52:30 -0500] [Job 24] Copying print data...
D [06/Jun/2017:12:52:30 -0500] [Job 24] backendRunLoop(print_fd=-1, device_fd=6, snmp_fd=5, addr=0x55861e2248f8, use_bc=0, side_cb=0x55861dd02870)
D [06/Jun/2017:12:52:30 -0500] [Job 24] Page = 612x792; 12,12 to 600,780
E [06/Jun/2017:12:52:30 -0500] [Job 24] Error importing HPLIP modules:83902 No module named base.g <================  ERROR
D [06/Jun/2017:12:52:30 -0500] [Job 24] Set job-printer-state-message to "Error importing HPLIP modules:83902 No module named base.g", current level=ERROR <================
D [06/Jun/2017:12:52:30 -0500] [Job 24]
D [06/Jun/2017:12:52:30 -0500] [Job 24] STATE: +connecting-to-device
D [06/Jun/2017:12:52:30 -0500] [Job 24] Looking up "10.x.1.2"...  <================
D [06/Jun/2017:12:52:30 -0500] [Job 24] Connecting to 10.x.1.2:515 for printer PASSTHRU
I [06/Jun/2017:12:52:30 -0500] [Job 24] Connecting to printer...
D [06/Jun/2017:12:52:30 -0500] [Job 24] STATE: -connecting-to-device
I [06/Jun/2017:12:52:30 -0500] [Job 24] Connected to printer... <================
D [06/Jun/2017:12:52:30 -0500] [Job 24] Connected to 10.x.1.2:515 (IPv4) (local port 1023)...
D [06/Jun/2017:12:52:30 -0500] [Job 24] Page = 612x792; 12,12 to 600,780
D [06/Jun/2017:12:52:30 -0500] [Job 24] slow_collate=0, slow_duplex=0, slow_order=0
D [06/Jun/2017:12:52:30 -0500] [Job 24] Before copy_comments - %!PS-Adobe-3.0
D [06/Jun/2017:12:52:30 -0500] [Job 24] %!PS-Adobe-3.0
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%BoundingBox: 12 12 600 780
D [06/Jun/2017:12:52:30 -0500] [Job 24] %cupsRotation: 0
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%Creator: bannertops/CUPS v1.4.2
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%CreationDate: Tue 06 Jun 2017 12:52:30 PM CDT
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%LanguageLevel: 2
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%DocumentData: Clean7Bit
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%Title: (testpri.test1)
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%For: (root)
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%Pages: 2
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%DocumentSuppliedResources: font Monospace
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%+ font Monospace-Bold
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%+ font Monospace-BoldOblique
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%+ font Monospace-Oblique
D [06/Jun/2017:12:52:30 -0500] [Job 24] %%EndComments
D [06/Jun/2017:12:52:30 -0500] [Job 24] Before copy_prolog - %¾ginProlog
D [06/Jun/2017:12:52:34 -0500] [Job 24] prtGeneralCurrentLocalization type is 0, expected 2!
D [06/Jun/2017:12:52:34 -0500] [Job 24] lpd_command 02 PASSTHRU
D [06/Jun/2017:12:52:34 -0500] [Job 24] Sending command string (10 bytes)...
D [06/Jun/2017:12:52:34 -0500] [Job 24] Reading command status...
D [06/Jun/2017:12:52:34 -0500] [Job 24] lpd_command returning 0
D [06/Jun/2017:12:52:34 -0500] [Job 24] Control file is:
D [06/Jun/2017:12:52:34 -0500] [Job 24] HtDCsrvPtstOAP02.swpa.gov
D [06/Jun/2017:12:52:34 -0500] [Job 24] Proot
D [06/Jun/2017:12:52:34 -0500] [Job 24] Jtestpri_test1
D [06/Jun/2017:12:52:34 -0500] [Job 24] ldfA903tDCsrvPtstOAP02
D [06/Jun/2017:12:52:34 -0500] [Job 24] UdfA903tDCsrvPtstOAP02
D [06/Jun/2017:12:52:34 -0500] [Job 24] Ntestpri_test1
D [06/Jun/2017:12:52:34 -0500] [Job 24] lpd_command 02 108 cfA903tDCsrvPtstOAP02
D [06/Jun/2017:12:52:34 -0500] [Job 24] Sending command string (27 bytes)...
D [06/Jun/2017:12:52:34 -0500] [Job 24] Reading command status...
D [06/Jun/2017:12:52:34 -0500] [Job 24] lpd_command returning 0
I [06/Jun/2017:12:52:34 -0500] [Job 24] Sending control file (108 bytes)
I [06/Jun/2017:12:52:34 -0500] [Job 24] Control file sent successfully
D [06/Jun/2017:12:52:34 -0500] [Job 24] lpd_command 03 0 dfA903tDCsrvPtstOAP02
D [06/Jun/2017:12:52:34 -0500] [Job 24] Sending command string (25 bytes)...
D [06/Jun/2017:12:52:34 -0500] [Job 24] Reading command status...
D [06/Jun/2017:12:52:34 -0500] [Job 24] lpd_command returning 0
I [06/Jun/2017:12:52:34 -0500] [Job 24] Sending data file (0 bytes)
W [06/Jun/2017:12:57:04 -0500] [Job 24] Remote host did not respond with data status byte after 300 seconds!
I [06/Jun/2017:12:57:04 -0500] [Job 24] Data file sent successfully <====================================================
E [06/Jun/2017:12:57:04 -0500] [Job 24] Job stopped due to filter errors; please consult the error_log file for details.
D [06/Jun/2017:12:57:04 -0500] [Job 24] The following messages were recorded from 12:52:32 PM to 12:52:32 PM
D [06/Jun/2017:12:57:04 -0500] [Job 24] hrDeviceDesc="Unknown"
D [06/Jun/2017:12:57:04 -0500] [Job 24] End of messages
D [06/Jun/2017:12:57:04 -0500] [Job 24] printer-state=3(idle)
D [06/Jun/2017:12:57:04 -0500] [Job 24] printer-state-message="Data file sent successfully" <====================================================
D [06/Jun/2017:12:57:04 -0500] [Job 24] printer-state-reasons=none
D [06/Jun/2017:12:57:05 -0500] [Job 24] Unloading... <====================================================
D [06/Jun/2017:12:59:44 -0500] [Job 24] Loading attributes...
I [06/Jun/2017:12:59:44 -0500] [Job 24] Job canceled by "root" <====================================================
I [06/Jun/2017:12:59:44 -0500] [Job 24] Canceled by "root". <====================================================
D [06/Jun/2017:13:02:05 -0500] [Job 24] Unloading...
[user1@server1 cups]$

 

On the above logs is visible that the server has a good communication with the printer but it's unable to print documents using the GUI System or with  the "lpr"command.

NOTE:  HPLIP (HP Linux Imaging & Printing) is an HP-developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux. The HPLIP project provides print, scan and fax support for 2676 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. (Note: Not all models are currently supported. See Supported Devices for more information.)

HPLIP is free, open source software distributed under the MIT, BSD, and GPL license. See the Licensing Information page for more information.

Changes

 New  installation or  package  upgrades.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.