New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError running # Example with PNG in usage guide #12
Comments
It runs when using |
Ok so I finally figured out what this is. ImageWriter tries to import Image, which used to come from PIL, (Python Image Library) which is no longer supported or included with Python. This issue can be remedied by installing Pillow, which is a working fork of PIL. Side note: Pretty sure this makes Pillow a dependency for python-barcode. |
Pillow is already listed as an optional dependency for exporting images.
…--
Hugo Osvaldo Barrera
On 19 Aug 2018, at 17:15, code807 ***@***.***> wrote:
Ok so I finally figured out what this is. ImageWriter tries to import Image, which used to come from PIL, (Python Image Library) which is no longer supported or included with Python. This issue can be remedied by installing Pillow, which is a working fork of PIL.
Side note: Pretty sure this makes Pillow a dependency for python-barcode.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I see it now. Maybe PIL should be specified or linked as pillow? PIL is no longer entirely accurate, since only a fork works. |
Pillow is listed as an optional dependency, not PIL. |
pls ,update PIL to Pillow for python3, and add the Pillow dependency to be must when pip install python-barcode |
@wellmonwu Please see previous comments. PIL has never been listed as a dependency; only pillow. Also, python2 has never supported, only python3. Finally, pillow is only required if you're exporting image files (eg: not svg), so it will always be listed as an optional dependency, not a"must". |
@WhyNotHugo Perhaps this could explicitly be stated in the error.
|
cannot agreed more . this is for newer ------------------ 原始邮件 ------------------
发件人: "Daniel Thoren"<notifications@github.com>
发送时间: 2019年7月22日(星期一) 晚上11:38
收件人: "WhyNotHugo/python-barcode"<python-barcode@noreply.github.com>;
抄送: "wellmon"<wellmon_wu@qq.com>;"Mention"<mention@noreply.github.com>;
主题: Re: [WhyNotHugo/python-barcode] TypeError running # Example with PNGin usage guide (#12)
Perhaps this could explicitly be stated in the error.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I'm running Python 3.5.5. A subsection of the usage guide:
...gives me the following error:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: