OCRmyPDF: [Bug]: ocrmypdf v15.1.0+git8.2b0e1498 (snap): GPL Ghostscript 9.55.0: Can't find initialization file gs_init.ps. ghostscript.py:118

What were you trying to do?

System

  • OS: openSUSE Leap 15.5 x86_64
  • ocrmypdf v15.1.0+git8.2b0e1498 101 latest/stable shael7aerien - snapd 2.60.4 20290 latest/stable canonical✓ snapd

Bug

  • GPL Ghostscript 9.55.0: Can’t find initialization file gs_init.ps. ghostscript.py:118

Where are you installing from?

Ubuntu snap

What operating system are you working on?

Linux

Relevant log output

Scanning contents     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 184/184 0:00:00
Start processing 4 pages concurrently                                                                                                                                            _sync.py:265
    1 GPL Ghostscript 9.55.0: Can't find initialization file gs_init.ps.                                                                                                   ghostscript.py:118
                                                                                                                                                                                             
OCR                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0%   0/184 -:--:--
SubprocessOutputError: Ghostscript rasterizing failed                                                                                                                            _sync.py:450

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (4 by maintainers)

Most upvoted comments

snap install ocrmypdf
 ocrmypdf --skip-text in.pdf  out.pdf

Scanning contents     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 91/91 0:00:00
Start processing 8 pages concurrently                                                                                              ocr.py:96
    1 Weight average image DPI is 321.7, max DPI is 600.0. The discrepancy may indicate a high detail region on this page,  _pipeline.py:477
but could also indicate a problem with the input PDF file. Page image will be rendered at 400.0 DPI.                                        
    2 GPL Ghostscript 9.55.0: Can't find initialization file gs_init.ps.                                                  ghostscript.py:139
                                                                                                                                            
   10 Weight average image DPI is 334.0, max DPI is 600.0. The discrepancy may indicate a high detail region on this page,  _pipeline.py:477
but could also indicate a problem with the input PDF file. Page image will be rendered at 400.0 DPI.                                        
OCR                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0%  0/91 -:--:--
SubprocessOutputError: Ghostscript rasterizing failed  

@jbarlow83 @loxK @omidraha FYI: latest latest/edge does work fine here. (I originally opened this ticket…)

OK, understood. Maybe, @brlin-tw can help as you asked him before. Or someone else having knowledge about Snap.

I plan to investigate this issue in the next few days, when there’s any progress I’ll make sure to let you know.

Sure I’ll check it out, no promises for any ETAs, though.