Comments (6)
I'm sorry about the confusion,
you also need to install python-imaging and pyserial.
I've updated the wiki accordingly.
Thank you.
Original comment by manpaz
on 11 Oct 2013 at 2:33
- Changed state: Fixed
from python-escpos.
It still doesn't work properly. "pyserial" is not in the Pi's repository, so I
built it from source like the other packages. It at least prints a hello world
now, but barcodes only print the text portion. Images print garbage ASCII, and
QR codes throw an error.
The line:
Epson.qr("You can read me from your smartphone")
results in the error:
Traceback (most recent call last):
File "test.py", line 8, in <module>
Epson.qr("You can read me from your smartphone")
AttributeError: Usb instance has no attribute 'qr'
This is after manually installing the python-qrcode package, and the
python-imaging package.
Original comment by [email protected]
on 11 Oct 2013 at 10:41
from python-escpos.
Do you mind to tell me which version of python-escpos are you using?
Original comment by manpaz
on 12 Oct 2013 at 12:10
- Changed state: Accepted
from python-escpos.
It's version 1.0-1
I also tried version 1.0
Original comment by [email protected]
on 12 Oct 2013 at 1:31
from python-escpos.
Hello,
I've got the same error message AttributeError: Usb instance has no attribute
'qr'.
I have search and it comes from the version of python-escpos, I've used the
1.0, so QR code method are available with the package 1.0-1.
I have updated the version of python-escpos and everything is working well as :
Epson.qr("You can read me from your smartphone")
Hope it will help you
Regards
Ben
Original comment by [email protected]
on 12 Jan 2014 at 10:54
from python-escpos.
Image has been renamed to PIL, the proper changes have been committed.
Also, instructions to install QR and some other dependencies are available at https://github.com/manpaz/python-escpos/wiki/Dependencies
Thank you!
from python-escpos.
Related Issues (20)
- pip package "python-escpos" wildly out of date HOT 5
- failed to open device that does not exist. HOT 4
- ImportError: No module named escpos.printer on Windows 10 HOT 19
- Text size not working (width and height) HOT 9
- Image printing prints only garbage HOT 29
- Barcode not printed HOT 4
- Introduce IntEnum or similar for printer states
- Usb printer not working on web Application HOT 2
- Printer not found on web application HOT 1
- Font switching not working. HOT 3
- is_online() fails with raise NotImplementedError()
- Full cut not working on Epson TM-T20III HOT 2
- 'usb timeout error' when used on a raspberry pi 3 with a cheap POS-58 thermal printer HOT 5
- ImportError: cannot import name 'DeviceNotFoundError' from 'escpos.exceptions' HOT 2
- usb.core.USBError: [Errno 5] Input/Output Error` HOT 1
- EPSON TM-m30III randomly fails to print images HOT 1
- Arabic Text not printing correctly HOT 2
- Tabbed text HOT 5
- windows Invalid endpoint address HOT 1
- Printer Emulator Connection Issue HOT 6
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-escpos.