hello friends...
i want to setup a thermal printer by python-printer-escpos module...
my code is :

Code:
from escpos.connections import getUSBPrinter


printer = getUSBPrinter()(idVendor=0x0483,
                          idProduct=0x5720,
                          inputEndPoint=0x81,
                          outputEndPoint=0x01) # Create the printer object with the connection params

printer.text("Hello World")
printer.lf()
i get this error :

Code:
Traceback (most recent call last):
  File "/home/pi/start/printerr/poss/NEW/py-print-escposs.py", line 8, in <module>
    outputEndPoint=0x01) # Create the printer object with the connection params
  File "/usr/local/lib/python2.7/dist-packages/escpos/connections.py", line 89, in __init__
    self.initialize()
  File "/usr/local/lib/python2.7/dist-packages/escpos/commandset/generic.py", line 463, in initialize
    self.__write(self.__class__.__ESC + '@')
AttributeError: USBPrinter instance has no attribute '_Generic__write'
what is problem?????
please help
i need it instantly