lincolnloop / python-qrcode

Python QR Code image generator
https://pypi.python.org/pypi/qrcode
Other
4.43k stars 676 forks source link

Requirement PIL/Pillow missing in setup.py #95

Closed htgoebel closed 8 years ago

htgoebel commented 8 years ago

The requirement for PIL respective Pillow is missing, see below.

Name: qrcode Version: 5.2.2

$ virtualenv foo
$ . foo/bin/activate
(foo) $ pip install qrcode
(foo) $ qr </tmp/x.txt > /tmp/x.png
Traceback (most recent call last):
  File "/tmp/foo/bin/qr", line 11, in <module>
    sys.exit(main())
  File "/tmp/foo/lib/python2.7/site-packages/qrcode/console_scripts.py", line 80, in main
    img = qr.make_image(image_factory=image_factory)
  File "/tmp/foo/lib/python2.7/site-packages/qrcode/main.py", line 263, in make_image
    from qrcode.image.pil import PilImage
  File "/tmp/foo/lib/python2.7/site-packages/qrcode/image/pil.py", line 8, in <module>
    import Image
ImportError: No module named Image
SmileyChris commented 8 years ago

It's because qrcode works without it if you use an alternate factory (or just generate console qr codes), so I didn't want to make it an explicit requirement. Thanks for the report though