calpe20 / python-barcode

Automatically exported from code.google.com/p/python-barcode
0 stars 0 forks source link

PIL checking does not work #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello !

In barcode/writer.py :

try:
    from PIL import Image, ImageDraw, ImageFont
except ImportError:
    import sys
    sys.stderr.write('PIL not found. Image output disabled.\n\n')
    Image = ImageDraw = ImageFont = None

But if PIL is installed as an egg, its import path is just 'import Image, ...', 
not under PIL namespace, i.e. PIL-1.1.7-py2.6-linux-x86_64.egg/Image.py exists.

Thanks in advance.

Regards,
Kazuhiko

Original issue reported on code.google.com by kazuhiko...@gmail.com on 10 Apr 2012 at 1:24

GoogleCodeExporter commented 8 years ago
I'd like to know if maintainer would accept patch fixing this if I were to 
write one?

Original comment by p.dobrog...@gmail.com on 30 May 2012 at 2:59

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 6e5d0857ec9c.

Original comment by weimann...@gmail.com on 30 May 2012 at 5:35

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by p.dobrog...@gmail.com on 31 May 2012 at 9:49