alysogorov / Ricoh_Aficio_SP1XX_CUPS_driver

CUPS driver for Ricoh Aficio SP1XX printer(possibly works for SP2XX)
16 stars 3 forks source link

Filter Failed Error #7

Open ismailkayi opened 4 years ago

ismailkayi commented 4 years ago

Hi all,

First of all thanks for this driver, this is my only hope to make my sp111 work on Linux. I am using Fedora31 and tried to add printer. But i got filter failed error. I have shared the logs below. I have also tried old drivers which madlynx provided, there is no filter errıor but i cant get anything but blank page from printer.

Jan 07 22:57:23 FedoraOS cupsd[16901]: FC_WEIGHT didn\'t match Jan 07 22:57:23 FedoraOS cupsd[16901]: Copying page 2... Jan 07 22:57:23 FedoraOS cupsd[16901]: pagew = 571.0, pagel = 818.0 Jan 07 22:57:23 FedoraOS cupsd[16901]: bboxx = 0, bboxy = 0, bboxw = 595, bboxl = 842 Jan 07 22:57:23 FedoraOS cupsd[16901]: PageLeft = 12.0, PageRight = 583.0 Jan 07 22:57:23 FedoraOS cupsd[16901]: PageTop = 830.0, PageBottom = 12.0 Jan 07 22:57:23 FedoraOS cupsd[16901]: PageWidth = 595.0, PageLength = 842.0 Jan 07 22:57:23 FedoraOS cupsd[16901]: Copying page 3... Jan 07 22:57:23 FedoraOS cupsd[16901]: pagew = 571.0, pagel = 818.0 Jan 07 22:57:23 FedoraOS cupsd[16901]: bboxx = 0, bboxy = 0, bboxw = 595, bboxl = 842 Jan 07 22:57:23 FedoraOS cupsd[16901]: PageLeft = 12.0, PageRight = 583.0 Jan 07 22:57:23 FedoraOS cupsd[16901]: PageTop = 830.0, PageBottom = 12.0 Jan 07 22:57:23 FedoraOS cupsd[16901]: PageWidth = 595.0, PageLength = 842.0 Jan 07 22:57:23 FedoraOS cupsd[16901]: Wrote 3 pages... Jan 07 22:57:23 FedoraOS cupsd[16901]: PID 23264 (pstops) exited with no errors. Jan 07 22:57:23 FedoraOS cupsd[16901]: PID 23258 (/usr/lib/cups/filter/pdftops) exited with no errors. Jan 07 22:57:23 FedoraOS cupsd[16901]: FC_WEIGHT didn\'t match Jan 07 22:57:23 FedoraOS cupsd[16901]: Read 201 bytes of print data... Jan 07 22:57:23 FedoraOS cupsd[16901]: Wrote 201 bytes of print data... Jan 07 22:57:23 FedoraOS cupsd[16901]: Traceback (most recent call last): Jan 07 22:57:23 FedoraOS cupsd[16901]: File \"/usr/lib/cups/filter/pstoricohddst-gdi\", line 513, in Jan 07 22:57:23 FedoraOS cupsd[16901]: doJobSimple() #just now only JobSimple supports duplex mode Jan 07 22:57:23 FedoraOS cupsd[16901]: File \"/usr/lib/cups/filter/pstoricohddst-gdi\", line 426, in doJobSimple Jan 07 22:57:23 FedoraOS cupsd[16901]: if not addPage(lpbm_out): break Jan 07 22:57:23 FedoraOS cupsd[16901]: File \"/usr/lib/cups/filter/pstoricohddst-gdi\", line 303, in addPage Jan 07 22:57:23 FedoraOS cupsd[16901]: lw, lh = parsePbmSize(fpage) #get raster dimensions in pixels Jan 07 22:57:23 FedoraOS cupsd[16901]: File \"/usr/lib/cups/filter/pstoricohddst-gdi\", line 289, in parsePbmSize Jan 07 22:57:23 FedoraOS cupsd[16901]: ls = lrrr.split(\" \") Jan 07 22:57:23 FedoraOS cupsd[16901]: TypeError: a bytes-like object is required, not \'str\' Jan 07 22:57:23 FedoraOS cupsd[16901]: PID 23259 (/usr/lib/cups/filter/pstoricohddst-gdi) stopped with status 1. Jan 07 22:57:23 FedoraOS cupsd[16901]: Hint: Try setting the LogLevel to "debug" to find out more. Jan 07 22:57:23 FedoraOS cupsd[16901]: Sent 201 bytes... Jan 07 22:57:23 FedoraOS cupsd[16901]: Waiting for read thread to exit... Jan 07 22:57:23 FedoraOS cupsd[16901]: Read thread still active, aborting the pending read... Jan 07 22:57:23 FedoraOS cupsd[16901]: PID 23260 (/usr/lib/cups/backend/usb) exited with no errors. Jan 07 22:57:23 FedoraOS cupsd[16901]: [Job 103] End of messages Jan 07 22:57:23 FedoraOS cupsd[16901]: [Job 103] printer-state=3(idle) Jan 07 22:57:23 FedoraOS cupsd[16901]: [Job 103] printer-state-message="Filter failed" Jan 07 22:57:23 FedoraOS cupsd[16901]: [Job 103] printer-state-reasons=none

alysogorov commented 4 years ago

hi. it very looks like a difference between python 2.7 and 3.x. look at this link - [https://webkul.com/blog/string-and-bytes-conversion-in-python3-x/] or google the error "TypeError: a bytes-like object is required, not 'str'". I made the driver for minor python version(kinfda 2.x), not for 3.x. so. 1.you can read l the link to understand - how to correct the place, to work under your py3.x 2.you can use py2.x to use the driver

  1. i could correct the place and upload it. but not just now. Best regards. Alex
chevcheli0s commented 4 years ago

I have same Filter Failed error on ubuntu 19.10 python 2.7.17-1 ./check-requirements pbmtojbg [REQUIRED] : Yes, version: PBMtoJBIG converter 2.1 -- creates bi-level image entity (BIE) as output file Ghostscript [REQUIRED] : Yes, version: 9.27 ps2write [REQUIRED] : Yes pbmraw [REQUIRED] : Yes

stockfishtr commented 3 years ago

Hello all,

This is the exactly the same error I have. When I check the status on CUPS, it says: "Idle - "Sending data to printer"" but when I check on jobs it says: stopped "Filter failed".

This is the error log when I try to print something:

`E [24/Sep/2020:15:35:45 +0300] [Job 24] Job stopped due to filter errors; please consult the /var/log/cups/error_log file for details.

D [24/Sep/2020:15:35:45 +0300] [Job 24] The following messages were recorded from 15:35:36 to 15:35:45 D [24/Sep/2020:15:35:45 +0300] [Job 24] Applying default options... D [24/Sep/2020:15:35:45 +0300] [Job 24] Adding start banner page "none". D [24/Sep/2020:15:35:45 +0300] [Job 24] Queued on "RICOH-SP-111-DDST" by "stockfish". D [24/Sep/2020:15:35:45 +0300] [Job 24] Auto-typing file... D [24/Sep/2020:15:35:45 +0300] [Job 24] Request file type is application/pdf. D [24/Sep/2020:15:35:45 +0300] [Job 24] File of type application/pdf queued by "stockfish". D [24/Sep/2020:15:35:45 +0300] [Job 24] Adding end banner page "none". D [24/Sep/2020:15:35:45 +0300] [Job 24] time-at-processing=1600950936 D [24/Sep/2020:15:35:45 +0300] [Job 24] 3 filters for job: D [24/Sep/2020:15:35:45 +0300] [Job 24] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66) D [24/Sep/2020:15:35:45 +0300] [Job 24] pdftops (application/vnd.cups-pdf to application/vnd.cups-postscript, cost 100) D [24/Sep/2020:15:35:45 +0300] [Job 24] ricoh-sp1xx (application/vnd.cups-postscript to printer/RICOH-SP-111-DDST, cost 100) D [24/Sep/2020:15:35:45 +0300] [Job 24] job-sheets=none,none D [24/Sep/2020:15:35:45 +0300] [Job 24] argv[0]="RICOH-SP-111-DDST" D [24/Sep/2020:15:35:45 +0300] [Job 24] argv[1]="24" D [24/Sep/2020:15:35:45 +0300] [Job 24] argv[2]="stockfish" D [24/Sep/2020:15:35:45 +0300] [Job 24] argv[3]="04.10.2010.doc" D [24/Sep/2020:15:35:45 +0300] [Job 24] argv[4]="1" D [24/Sep/2020:15:35:45 +0300] [Job 24] argv[5]="InputSlot=AUTO PageSize=A4 job-uuid=urn:uuid:9f12edb5-0b9b-3422-7813-cd2b5be7ad7c job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1600950936 time-at-processing=1600950936 document-name-supplied=W2filW" D [24/Sep/2020:15:35:45 +0300] [Job 24] argv[6]="/var/spool/cups/d00024-001" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[0]="CUPS_CACHEDIR=/var/cache/cups" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[1]="CUPS_DATADIR=/usr/share/cups" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[4]="CUPS_REQUESTROOT=/var/spool/cups" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[5]="CUPS_SERVERBIN=/usr/lib/cups" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[6]="CUPS_SERVERROOT=/etc/cups" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[7]="CUPS_STATEDIR=/run/cups" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[8]="HOME=/var/spool/cups/tmp" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[10]="SERVER_ADMIN=root@StockfishPC" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[11]="SOFTWARE=CUPS/2.3.3" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[12]="TMPDIR=/var/spool/cups/tmp" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[13]="USER=root" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[14]="CUPS_MAX_MESSAGE=2047" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[15]="CUPS_SERVER=/run/cups/cups.sock" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[16]="CUPS_ENCRYPTION=IfRequested" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[17]="IPP_PORT=631" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[18]="CHARSET=utf-8" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[19]="LANG=en_US.UTF-8" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[20]="PPD=/etc/cups/ppd/RICOH-SP-111-DDST.ppd" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[21]="RIP_MAX_CACHE=128m" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[22]="CONTENT_TYPE=application/pdf" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[23]="DEVICE_URI=usb://RICOH/SP%20111%20DDST?serial=T985M831515" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[24]="PRINTER_INFO=RICOH SP 111 DDST" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[25]="PRINTER_LOCATION=StockfishPC" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[26]="PRINTER=RICOH-SP-111-DDST" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[27]="PRINTER_STATE_REASONS=none" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[28]="CUPS_FILETYPE=document" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript" D [24/Sep/2020:15:35:45 +0300] [Job 24] envp[30]="AUTH_I****" D [24/Sep/2020:15:35:45 +0300] [Job 24] Started filter /usr/lib/cups/filter/pdftopdf (PID 2617) D [24/Sep/2020:15:35:45 +0300] [Job 24] Started filter /usr/lib/cups/filter/pdftops (PID 2618) D [24/Sep/2020:15:35:45 +0300] [Job 24] Started filter /usr/lib/cups/filter/ricoh-sp1xx (PID 2619) D [24/Sep/2020:15:35:45 +0300] [Job 24] Started backend /usr/lib/cups/backend/usb (PID 2620) D [24/Sep/2020:15:35:45 +0300] [Job 24] Loading USB quirks from \"/usr/share/cups/usb\". D [24/Sep/2020:15:35:45 +0300] [Job 24] Loaded 181 quirks. D [24/Sep/2020:15:35:45 +0300] [Job 24] Printing on printer with URI: usb://RICOH/SP%20111%20DDST?serial=T985M831515 D [24/Sep/2020:15:35:45 +0300] [Job 24] libusb_get_device_list=12 D [24/Sep/2020:15:35:45 +0300] [Job 24] STATE: +connecting-to-device D [24/Sep/2020:15:35:45 +0300] [Job 24] pdftops - copying to temp print file \"/var/spool/cups/tmp/00a3a5f7b0ace\" D [24/Sep/2020:15:35:45 +0300] [Job 24] pdftopdf: Last filter determined by the PPD: ricoh-sp1xx; FINAL_CONTENT_TYPE: application/vnd.cups-postscript => pdftopdf will not log pages in page_log. D [24/Sep/2020:15:35:45 +0300] [Job 24] PDF interactive form and annotation flattening done via QPDF D [24/Sep/2020:15:35:45 +0300] [Job 24] PID 2617 (/usr/lib/cups/filter/pdftopdf) exited with no errors. D [24/Sep/2020:15:35:45 +0300] [Job 24] python: can\'t open file \'/home/alys-admin/DIRS/RICOH/develop/ricoh-sp1xx-drv.py\': [Errno 2] No such file or directory D [24/Sep/2020:15:35:45 +0300] [Job 24] Printer make and model: Ricoh Ricoh Aficio SP 1XX D [24/Sep/2020:15:35:45 +0300] [Job 24] Running command line for pstops: pstops 24 stockfish 04.10.2010.doc 1 \'InputSlot=AUTO PageSize=A4 job-uuid=urn:uuid:9f12edb5-0b9b-3422-7813-cd2b5be7ad7c job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1600950936 time-at-processing=1600950936 document-name-supplied=W2filW\' D [24/Sep/2020:15:35:45 +0300] [Job 24] Using image rendering resolution 600 dpi D [24/Sep/2020:15:35:45 +0300] [Job 24] Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=%stderr -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=%stdout -sProcessColorModel=DeviceGray -sColorConversionStrategy=Gray -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE -c \'save pop\' -f /var/spool/cups/tmp/00a3a5f7b0ace D [24/Sep/2020:15:35:45 +0300] [Job 24] Started filter gs (PID 2623) D [24/Sep/2020:15:35:45 +0300] [Job 24] Started filter pstops (PID 2624) D [24/Sep/2020:15:35:45 +0300] [Job 24] PID 2619 (/usr/lib/cups/filter/ricoh-sp1xx) stopped with status 2. D [24/Sep/2020:15:35:45 +0300] [Job 24] Hint: Try setting the LogLevel to "debug" to find out more. D [24/Sep/2020:15:35:45 +0300] [Job 24] STATE: -connecting-to-device D [24/Sep/2020:15:35:45 +0300] [Job 24] Printer found with device ID: MFG:RICOH ;CMD:GDI;MDL:SP 111 DDST;CLS:PRINTER; Device URI: usb://RICOH/SP%20111%20DDST?serial=T985M831515 D [24/Sep/2020:15:35:45 +0300] [Job 24] Device protocol: 2 D [24/Sep/2020:15:35:45 +0300] [Job 24] Sending data to printer. D [24/Sep/2020:15:35:45 +0300] [Job 24] Sent 0 bytes... D [24/Sep/2020:15:35:45 +0300] [Job 24] Page = 595x842; 12,12 to 583,830 D [24/Sep/2020:15:35:45 +0300] [Job 24] slow_collate=0, slow_duplex=0, slow_order=0 D [24/Sep/2020:15:35:45 +0300] [Job 24] Before copy_comments - %!PS-Adobe-3.0 D [24/Sep/2020:15:35:45 +0300] [Job 24] %!PS-Adobe-3.0 D [24/Sep/2020:15:35:45 +0300] [Job 24] %%Invocation: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=? -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=? -sProcessColorModel=DeviceGray -sColorConversionStrategy=Gray -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE ? D [24/Sep/2020:15:35:45 +0300] [Job 24] %%+ ? -f ? D [24/Sep/2020:15:35:45 +0300] [Job 24] %%BoundingBox: 0 0 595 842 D [24/Sep/2020:15:35:45 +0300] [Job 24] %%HiResBoundingBox: 0 0 595.00 842.00 D [24/Sep/2020:15:35:45 +0300] [Job 24] %%Creator: GPL Ghostscript 952 (ps2write) D [24/Sep/2020:15:35:45 +0300] [Job 24] %%LanguageLevel: 2 D [24/Sep/2020:15:35:45 +0300] [Job 24] %%CreationDate: D:20200924153537+03\'00\' D [24/Sep/2020:15:35:45 +0300] [Job 24] %%Pages: 1 D [24/Sep/2020:15:35:45 +0300] [Job 24] %%EndComments D [24/Sep/2020:15:35:45 +0300] [Job 24] Before copy_prolog - %%BeginProlog D [24/Sep/2020:15:35:45 +0300] [Job 24] Before copy_setup - %%Page: 1 1 D [24/Sep/2020:15:35:45 +0300] [Job 24] Before page loop - %%Page: 1 1 D [24/Sep/2020:15:35:45 +0300] [Job 24] Copying page 1... D [24/Sep/2020:15:35:45 +0300] [Job 24] pagew = 571.0, pagel = 818.0 D [24/Sep/2020:15:35:45 +0300] [Job 24] bboxx = 0, bboxy = 0, bboxw = 595, bboxl = 842 D [24/Sep/2020:15:35:45 +0300] [Job 24] PageLeft = 12.0, PageRight = 583.0 D [24/Sep/2020:15:35:45 +0300] [Job 24] PageTop = 830.0, PageBottom = 12.0 D [24/Sep/2020:15:35:45 +0300] [Job 24] PageWidth = 595.0, PageLength = 842.0 D [24/Sep/2020:15:35:45 +0300] [Job 24] Wrote 1 pages... D [24/Sep/2020:15:35:45 +0300] [Job 24] PID 2624 (pstops) exited with no errors. D [24/Sep/2020:15:35:45 +0300] [Job 24] PID 2623 (gs) exited with no errors. D [24/Sep/2020:15:35:45 +0300] [Job 24] PID 2618 (/usr/lib/cups/filter/pdftops) exited with no errors. D [24/Sep/2020:15:35:45 +0300] [Job 24] Waiting for read thread to exit... D [24/Sep/2020:15:35:45 +0300] [Job 24] Read thread still active, aborting the pending read... D [24/Sep/2020:15:35:45 +0300] [Job 24] PID 2620 (/usr/lib/cups/backend/usb) exited with no errors. D [24/Sep/2020:15:35:45 +0300] [Job 24] End of messages D [24/Sep/2020:15:35:45 +0300] [Job 24] printer-state=3(idle) D [24/Sep/2020:15:35:45 +0300] [Job 24] printer-state-message="Sending data to printer." D [24/Sep/2020:15:35:45 +0300] [Job 24] printer-state-reasons=none ` Please help, I have tons of documents and I don't have much time left.

Thanks a lot.