You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package name & version you are having issues with or have a request for
hplip 3.16.8-1
Used repositories
core, main, apps
Expected behaviour
print document
Actual behaviour
Error on using printer: HP LaserJet Pro MFP M426fdw
Error message was: Filter failed
caused by: used python version
and ident errors in vi /usr/lib/cups/filter/hpps
cat /var/log/cups/error_log
D [08/Sep/2016:13:37:27 +0200] [Job 5] backendWaitLoop(snmp_fd=5, addr=0x55ad0b7875c8, side_cb=0x55ad0a10c210)
D [08/Sep/2016:13:37:27 +0200] [Job 5] : ERROR: Error importing HPLIP modules:4930 No module named cupsext
D [08/Sep/2016:13:37:27 +0200] [Job 5] PID 4930 (/usr/lib/cups/filter/hpps) stopped with status 1.
D [08/Sep/2016:13:37:27 +0200] [Job 5] Hint: Try setting the LogLevel to "debug" to find out more.
D [08/Sep/2016:13:37:27 +0200] [Job 5] PID 4931 (/usr/lib/cups/backend/socket) exited with no errors.
...
D [08/Sep/2016:13:37:27 +0200] [Job 5] Wrote 2 pages...
D [08/Sep/2016:13:37:27 +0200] [Job 5] PID 4933 (pstops) exited with no errors.
D [08/Sep/2016:13:37:27 +0200] [Job 5] PID 4932 (gs) exited with no errors.
D [08/Sep/2016:13:37:27 +0200] [Job 5] PID 4929 (/usr/lib/cups/filter/pdftops) exited with no errors.
D [08/Sep/2016:13:37:27 +0200] [Job 5] End of messages
D [08/Sep/2016:13:37:27 +0200] [Job 5] printer-state=3(idle)
D [08/Sep/2016:13:37:27 +0200] [Job 5] printer-state-message="Filter failed"
D [08/Sep/2016:13:37:27 +0200] [Job 5] printer-state-reasons=none
Extension modules are missing from the current Python path "/usr/lib/python/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
switch active python version rm /usr/bin/python ln -s /usr/bin/python3.5 /usr/bin/python
set debug in cups.conf vi /etc/cups/cupsd.conf
LogLevel debug
systemctl restart cups-browsed.service
cat /var/log/cups/error_log
D [14/Sep/2016:14:21:46 +0200] [Job 22] Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sDEVICE=ps2write -sOUTPUTFILE=%stdout -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE -c 'save pop' -f /var/spool/cups/tmp/023f457df757e
D [14/Sep/2016:14:21:46 +0200] [Job 22] Started filter gs (PID 9207)
D [14/Sep/2016:14:21:46 +0200] [Job 22] File "/usr/lib/cups/filter/hpps", line 194
D [14/Sep/2016:14:21:46 +0200] [Job 22] for x in szKeyInitials:
D [14/Sep/2016:14:21:46 +0200] [Job 22] ^
D [14/Sep/2016:14:21:46 +0200] [Job 22] TabError: inconsistent use of tabs and spaces in indentation
D [14/Sep/2016:14:21:46 +0200] [Job 22] Started filter pstops (PID 9208)
D [14/Sep/2016:14:21:46 +0200] [Job 22] PID 9205 (/usr/lib/cups/filter/hpps) stopped with status 1.
D [14/Sep/2016:14:21:46 +0200] [Job 22] Hint: Try setting the LogLevel to "debug" to find out more.
D [14/Sep/2016:14:21:46 +0200] [Job 22] PID 9206 (/usr/lib/cups/backend/socket) exited with no errors.
/usr/lib/cups/filter/hpps with errors in Ident (^I).
Changed the ident, maybe its wrong, but printer works.
vi /usr/lib/cups/filter/hpps
192 else:$
193 szKeyInitials = ['HPFIDigit', 'HPSEDigit', 'HPTHDigit', 'HPFTDigit'] $
194 for x in szKeyInitials:$
195 try:$
196 secpin += opts[x]$
197 except KeyError:$
198 secpin += '0'$
199 $
200 os.write(output_fd, to_bytes_utf8('@PJL SET HOLDKEY="%s"\x0a' % secpin))$
Steps to reproduce the problem
…
System info link created by Octopi > Tools > SysInfo
Thank you for your quick response!
The patched hplip works like expected.
But the link to python3 must be set by hand. ln -s /usr/bin/python3.5 /usr/bin/python
Submission type
Package name & version you are having issues with or have a request for
Used repositories
Expected behaviour
Actual behaviour
cat /var/log/cups/error_log
D [08/Sep/2016:13:37:27 +0200] [Job 5] backendWaitLoop(snmp_fd=5, addr=0x55ad0b7875c8, side_cb=0x55ad0a10c210)
D [08/Sep/2016:13:37:27 +0200] [Job 5] : ERROR: Error importing HPLIP modules:4930 No module named cupsext
D [08/Sep/2016:13:37:27 +0200] [Job 5] PID 4930 (/usr/lib/cups/filter/hpps) stopped with status 1.
D [08/Sep/2016:13:37:27 +0200] [Job 5] Hint: Try setting the LogLevel to "debug" to find out more.
D [08/Sep/2016:13:37:27 +0200] [Job 5] PID 4931 (/usr/lib/cups/backend/socket) exited with no errors.
...
D [08/Sep/2016:13:37:27 +0200] [Job 5] Wrote 2 pages...
D [08/Sep/2016:13:37:27 +0200] [Job 5] PID 4933 (pstops) exited with no errors.
D [08/Sep/2016:13:37:27 +0200] [Job 5] PID 4932 (gs) exited with no errors.
D [08/Sep/2016:13:37:27 +0200] [Job 5] PID 4929 (/usr/lib/cups/filter/pdftops) exited with no errors.
D [08/Sep/2016:13:37:27 +0200] [Job 5] End of messages
D [08/Sep/2016:13:37:27 +0200] [Job 5] printer-state=3(idle)
D [08/Sep/2016:13:37:27 +0200] [Job 5] printer-state-message="Filter failed"
D [08/Sep/2016:13:37:27 +0200] [Job 5] printer-state-reasons=none
http://hplipopensource.com/node/372 says:
locate cupsext.so
/usr/lib/python3.5/site-packages/cupsext.so
ls -al /usr/bin/python
lrwxrwxrwx 1 root root 9 3. Jul 23:49 /usr/bin/python -> python2.7
switch active python version
rm /usr/bin/python
ln -s /usr/bin/python3.5 /usr/bin/python
set debug in cups.conf
vi /etc/cups/cupsd.conf
LogLevel debug
systemctl restart cups-browsed.service
cat /var/log/cups/error_log
D [14/Sep/2016:14:21:46 +0200] [Job 22] Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sDEVICE=ps2write -sOUTPUTFILE=%stdout -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE -c 'save pop' -f /var/spool/cups/tmp/023f457df757e
D [14/Sep/2016:14:21:46 +0200] [Job 22] Started filter gs (PID 9207)
D [14/Sep/2016:14:21:46 +0200] [Job 22] File "/usr/lib/cups/filter/hpps", line 194
D [14/Sep/2016:14:21:46 +0200] [Job 22] for x in szKeyInitials:
D [14/Sep/2016:14:21:46 +0200] [Job 22] ^
D [14/Sep/2016:14:21:46 +0200] [Job 22] TabError: inconsistent use of tabs and spaces in indentation
D [14/Sep/2016:14:21:46 +0200] [Job 22] Started filter pstops (PID 9208)
D [14/Sep/2016:14:21:46 +0200] [Job 22] PID 9205 (/usr/lib/cups/filter/hpps) stopped with status 1.
D [14/Sep/2016:14:21:46 +0200] [Job 22] Hint: Try setting the LogLevel to "debug" to find out more.
D [14/Sep/2016:14:21:46 +0200] [Job 22] PID 9206 (/usr/lib/cups/backend/socket) exited with no errors.
/usr/lib/cups/filter/hpps with errors in Ident (^I).
Changed the ident, maybe its wrong, but printer works.
vi /usr/lib/cups/filter/hpps
Steps to reproduce the problem
System info link created by Octopi > Tools > SysInfo
The text was updated successfully, but these errors were encountered: