Giter Club home page Giter Club logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
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.

manpaz avatar manpaz commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.