-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
Description
After a couple of successful prints on the SP2 I tried to print a 3rd image and got the following error.
All attepts failed.
Disconnecting my debian system from the printer network and reconnecting solved the issue.
I did not reboot the printer, only re-connected to it.
It might be nothing, but since it occured I am passing this information here.
bserem@dwarf ~/Desktop/Instax/SP2 $ instax-print SRM02856.JPG
--- Instax Printer Python Client ---
Connecting to Printer.
Traceback (most recent call last):
File "/usr/local/bin/instax-print", line 103, in <module>
info = myInstax.getPrinterInformation()
File "/usr/local/lib/python3.6/dist-packages/instax/sp2.py", line 191, in getPrinterInformation
printerModel = self.getPrinterModelName()
File "/usr/local/lib/python3.6/dist-packages/instax/sp2.py", line 94, in getPrinterModelName
response = self.sendCommand(cmdPacket)
File "/usr/local/lib/python3.6/dist-packages/instax/sp2.py", line 81, in sendCommand
decodedResponse = self.packetFactory.decode(reply.data)
File "/usr/local/lib/python3.6/dist-packages/instax/packet.py", line 63, in decode
return(ModelNameCommand(mode=self.mode, byteArray=byteArray))
File "/usr/local/lib/python3.6/dist-packages/instax/packet.py", line 670, in __init__
self.payload = self.decodeRespPayload(byteArray)
File "/usr/local/lib/python3.6/dist-packages/instax/packet.py", line 697, in decodeRespPayload
self.modelName = self.getPrinterModelString(16, byteArray)
File "/usr/local/lib/python3.6/dist-packages/instax/packet.py", line 435, in getPrinterModelString
return str(byteArray[offset: offset + 4], 'ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfb in position 0: ordinal not in range(128)