Python Forum
python-printer-escpos 0.0.3 ERROR
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()
Reply
#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: [email protected]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to send file to printer with no results. chob_thomas 2 3,356 Dec-21-2022, 07:12 AM
Last Post: Pedroski55
  How do you marshal the default printer setup to print? hammer 0 1,274 May-29-2022, 02:54 PM
Last Post: hammer
  Can you print a string variable to printer hammer 2 1,928 Apr-30-2022, 11:48 PM
Last Post: hammer
  Printing to a printer connected to pi 4 alan 2 2,421 Oct-04-2020, 10:08 PM
Last Post: alan
  Is this possible in Python? Auto-Send-to-printer on script run? pcsailor 8 16,845 Jul-19-2019, 09:33 AM
Last Post: perfringo
  Control a dot matrix printer Clement_2000 4 4,873 Jan-27-2019, 09:00 PM
Last Post: Clement_2000
  print a persian file by thermal printer and python-escpos mnodule gray 12 12,543 Nov-03-2017, 11:15 PM
Last Post: Larz60+
  printing a text file by python and thermal printer gray 6 20,558 Jul-30-2017, 05:56 AM
Last Post: buran
  python to install printer drivers automatic leoxucn 4 7,650 Jul-10-2017, 09:21 PM
Last Post: Larz60+
  using windo printer jim123 1 4,076 Feb-18-2017, 09:06 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020