ALT Linux Bugzilla
– Attachment 7414 Details for
Bug 34594
ocrfeeder не запускается (из пакета ocrfeeder) ; проблемный пакет - python-module-ocrfeeder
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
исправление (diff -ur, patch -p0)
python-module-ocrfeeder_PIL.patch (text/plain), 2.54 KB, created by
alexisatv
on 2018-03-01 08:31:49 MSK
(
hide
)
Description:
исправление (diff -ur, patch -p0)
Filename:
MIME Type:
Creator:
alexisatv
Created:
2018-03-01 08:31:49 MSK
Size:
2.54 KB
patch
obsolete
>diff -ur ocrfeeder.old/feeder/imageManipulation.py ocrfeeder/feeder/imageManipulation.py >--- ocrfeeder.old/feeder/imageManipulation.py 2012-04-11 22:32:44.000000000 +0600 >+++ ocrfeeder/feeder/imageManipulation.py 2018-02-28 11:36:19.784377302 +0500 >@@ -21,7 +21,7 @@ > from ocrfeeder.util.lib import debug > > import gettext >-import Image, ImageDraw >+from PIL import Image, ImageDraw > import os.path > from ocrfeeder.util import graphics > import sys >diff -ur ocrfeeder.old/feeder/layoutAnalysis.py ocrfeeder/feeder/layoutAnalysis.py >--- ocrfeeder.old/feeder/layoutAnalysis.py 2013-05-23 19:53:14.000000000 +0600 >+++ ocrfeeder/feeder/layoutAnalysis.py 2018-02-28 11:36:33.191801396 +0500 >@@ -24,7 +24,7 @@ > from ocrfeeder.studio.dataHolder import DataBox > from ocrfeeder.util.configuration import ConfigurationManager > from imageManipulation import ImageProcessor >-import Image >+from PIL import Image > import re > import math > >diff -ur ocrfeeder.old/studio/dataHolder.py ocrfeeder/studio/dataHolder.py >--- ocrfeeder.old/studio/dataHolder.py 2012-04-11 22:32:44.000000000 +0600 >+++ ocrfeeder/studio/dataHolder.py 2018-02-28 11:35:42.584200611 +0500 >@@ -20,7 +20,7 @@ > > import os.path > from ocrfeeder.util import graphics >-import Image >+from PIL import Image > import gobject > from ocrfeeder.util.graphics import getImagePrintSize, getImageResolution > from ocrfeeder.util import TEXT_TYPE, IMAGE_TYPE, ALIGN_LEFT, lib >diff -ur ocrfeeder.old/studio/widgetPresenter.py ocrfeeder/studio/widgetPresenter.py >--- ocrfeeder.old/studio/widgetPresenter.py 2013-05-23 19:53:14.000000000 +0600 >+++ ocrfeeder/studio/widgetPresenter.py 2018-02-28 11:36:03.039847650 +0500 >@@ -26,7 +26,7 @@ > from ocrfeeder.util.constants import * > from ocrfeeder.util.graphics import convertPixbufToImage > from enchant.checker import SpellChecker >-import Image >+from PIL import Image > import gettext > import gobject > import goocanvas >diff -ur ocrfeeder.old/util/graphics.py ocrfeeder/util/graphics.py >--- ocrfeeder.old/util/graphics.py 2012-04-11 22:32:44.000000000 +0600 >+++ ocrfeeder/util/graphics.py 2018-02-28 11:35:11.062203528 +0500 >@@ -19,7 +19,7 @@ > ########################################################################### > > from lib import debug >-import Image >+from PIL import Image > import gtk > import math > >diff -ur ocrfeeder.old/util/lib.py ocrfeeder/util/lib.py >--- ocrfeeder.old/util/lib.py 2013-05-23 19:53:14.000000000 +0600 >+++ ocrfeeder/util/lib.py 2018-02-28 11:35:25.213651157 +0500 >@@ -20,7 +20,7 @@ > > import os > import mimetypes >-import Image >+from PIL import Image > import tempfile > import gtk > import math
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34594
: 7414