Click here to Skip to main content
15,885,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing hotel billing system that prints the bill receipt using thermal printer but i am stuck at [Errno None] Other errors python3.9 library: escposprinter & libusb-1.0, plateform:windows 10 Thermal printer: xlab xp-58III

from escposprinter import *

try:
    Epson = printer.Usb(0x0416, 0x5011)
    Epson.text('Hello World')
    Epson.cut()
except Exception as e:
    print("PRINTER ERROR: ", e)

Result: [Errno None] Other errors if i remove try block then, Result: Process finished with exit code -1073740791 (0xC0000409), what is the problem??


What I have tried:

from escposprinter import *

try:
    Epson = printer.Usb(0x0416, 0x5011)
    Epson.text('Hello World')
    Epson.cut()
except Exception as e:
    print("PRINTER ERROR: ", e)
Posted
Comments
Richard MacCutchan 6-Nov-20 6:44am    
It is impossible to guess what is the cause of that error. And without access to the library source there is no way to find it. Try asking the owners of the library.
Richard Deeming 6-Nov-20 7:28am    
Error 0xC0000409 means STATUS_STACK_BUFFER_OVERRUN. Something in your code or the library you're referencing is corrupting the process memory.

Based on the lack of details provided, there is no way we can help you.
Member 12675088 6-Nov-20 12:22pm    
what can i provide more to solve this problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900