Comments (9)
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.
from python-barcode.
Pillow is listed as an optional dependency, not PIL.
Some docs still have outdated PIL references, so I've updated these.
from python-barcode.
It runs when using writer=ImageWriter
, but then an SVG image is created. Not a PNG.
from python-barcode.
from python-barcode.
I see it now. Maybe PIL should be specified or linked as pillow? PIL is no longer entirely accurate, since only a fork works.
from python-barcode.
pls ,update PIL to Pillow for python3, and add the Pillow dependency to be must when pip install python-barcode
from 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".
from python-barcode.
@WhyNotHugo Perhaps this could explicitly be stated in the error.
@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".
from python-barcode.
from python-barcode.
Related Issues (20)
- How to use with Pillow image
- ISBN-13 starting with 979 HOT 1
- Text placement in ImageWriter HOT 2
- UPC/UPCA final output doesn't include guard bars HOT 1
- Add some form of tests reading the barcodes
- no support for MSI (Plessey) barcodes HOT 2
- EAN13 calculate_checksum() generates inconsistent values HOT 6
- better formating for GS1_128 HOT 1
- Unable to generate PNG using pillow 10 HOT 3
- dpi HOT 1
- generating barcode error HOT 1
- Unexpected ">" symbol at the end of generated EAN-13 barcode HOT 2
- module_width not working HOT 1
- invalid ppem value with 0.15.1 but not with 0.14.0 HOT 5
- Incompatibility with pillow 10.0.1 HOT 10
- Error on the number generated HOT 11
- Redable text under bars is cut out from the image HOT 2
- Support for Code128 FNC4 / ISO-8859-1
- Why does `Barcode.build()` always return a singleton list? HOT 2
- GS1-128 images are cut-off HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-barcode.