Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 python-printer-escpos 0.0.3 ERROR
#1
Hi,
I'm using python-printer-escpos 0.0.3 . I connected my printer as a USB printer and i followed the link Escpos. Successfully installed the package and when i try to run my application it shows the error as
Quote: from escpos.connections import getUSBPrinter ImportError: No module named connections
. I tried with different applications and the error is same. How to solve this issue?
from escpos import getUSBPrinter
printer = new getUSBPrinter(commandSet='Generic')(idVendor=0x0525,idProduct=0xa4a8,inputEndPoint=0x82,outputEndPoint=0x01)
printer.text("Hello World")
printer.lf()

Quote
#2
I have never used this package, however the author has the following preface in his docs:
Quote:If you are just starting up with POS RECEIPT Printers, you must first refer to http://pythonhosted.org/python-printer-escpos/ to get started.

python-printer-escpos provides four different types of printer connections to talk to a ESCPOS printer.
if you can't find an answer there, perhaps contact the author (Shantanu Bhadoria) here: shantanu@cpan.org
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Is this possible in Python? Auto-Send-to-printer on script run? pcsailor 8 2,292 Jul-19-2019, 09:33 AM
Last Post: perfringo
  Control a dot matrix printer Clement_2000 4 616 Jan-27-2019, 09:00 PM
Last Post: Clement_2000
  print a persian file by thermal printer and python-escpos mnodule gray 12 4,030 Nov-03-2017, 11:15 PM
Last Post: Larz60+
  printing a text file by python and thermal printer gray 6 8,470 Jul-30-2017, 05:56 AM
Last Post: buran
  python to install printer drivers automatic leoxucn 4 2,515 Jul-10-2017, 09:21 PM
Last Post: Larz60+
  using windo printer jim123 1 1,387 Feb-18-2017, 09:06 PM
Last Post: Larz60+
  printing to a printer vs the screen birdieman 4 2,031 Dec-27-2016, 07:32 PM
Last Post: Larz60+

Forum Jump:


Users browsing this thread: 1 Guest(s)