(base) C:\Users\marce\catprinter>python printer.py test.jpg --devicename GB03
⏳ Applying Floyd-Steinberg dithering to image...
✅ Done.
✅ Read image: (512, 384) (h, w) pixels
✅ Generated BLE commands: 28803 bytes
⏳ Looking for a BLE device named GB03...
✅ Got it. Address: 91:24:97:5B:61:54: GB03
⏳ Connecting to 91:24:97:5B:61:54: GB03...
Traceback (most recent call last):
File "C:\Users\marce\anaconda3\lib\asyncio\locks.py", line 226, in wait
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\marce\anaconda3\lib\asyncio\tasks.py", line 492, in wait_for
fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\marce\catprinter\printer.py", line 66, in
main()
File "C:\Users\marce\catprinter\printer.py", line 62, in main
loop.run_until_complete(run_ble(data, args.devicename, logger))
File "C:\Users\marce\anaconda3\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\marce\catprinter\catprinter\ble.py", line 36, in run_ble
async with BleakClient(address) as client:
File "C:\Users\marce\anaconda3\lib\site-packages\bleak\backends\client.py", line 61, in aenter
await self.connect()
File "C:\Users\marce\anaconda3\lib\site-packages\bleak\backends\winrt\client.py", line 219, in connect
await asyncio.wait_for(event.wait(), timeout=timeout)
File "C:\Users\marce\anaconda3\lib\asyncio\tasks.py", line 494, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
(base) C:\Users\marce\catprinter>python printer.py test.jpg --devicename GB03 ⏳ Applying Floyd-Steinberg dithering to image... ✅ Done. ✅ Read image: (512, 384) (h, w) pixels ✅ Generated BLE commands: 28803 bytes ⏳ Looking for a BLE device named GB03... ✅ Got it. Address: 91:24:97:5B:61:54: GB03 ⏳ Connecting to 91:24:97:5B:61:54: GB03... Traceback (most recent call last): File "C:\Users\marce\anaconda3\lib\asyncio\locks.py", line 226, in wait await fut asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\marce\anaconda3\lib\asyncio\tasks.py", line 492, in wait_for fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\Users\marce\catprinter\printer.py", line 66, in
main()
File "C:\Users\marce\catprinter\printer.py", line 62, in main
loop.run_until_complete(run_ble(data, args.devicename, logger))
File "C:\Users\marce\anaconda3\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\marce\catprinter\catprinter\ble.py", line 36, in run_ble
async with BleakClient(address) as client:
File "C:\Users\marce\anaconda3\lib\site-packages\bleak\backends\client.py", line 61, in aenter
await self.connect()
File "C:\Users\marce\anaconda3\lib\site-packages\bleak\backends\winrt\client.py", line 219, in connect
await asyncio.wait_for(event.wait(), timeout=timeout)
File "C:\Users\marce\anaconda3\lib\asyncio\tasks.py", line 494, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError