I tried printing with this script.
It will connect to my printer but it errors out with the following error:
I'm using endeavourOS (arch linux) on a Dell Latitude E5450
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/bleak/backends/bluezdbus/client.py", line 209, in connect
reply = await self._bus.call(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/dbus_fast/aio/message_bus.py", line 384, in call
await future
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/sven/Thermal printer/catprinter-main/print.py", line 83, in <module>
main()
File "/home/sven/Thermal printer/catprinter-main/print.py", line 79, in main
asyncio.run(run_ble(data, device=args.device))
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/sven/Thermal printer/catprinter-main/catprinter/ble.py", line 80, in run_ble
async with BleakClient(address) as client:
File "/usr/lib/python3.12/site-packages/bleak/__init__.py", line 565, in __aenter__
await self.connect()
File "/usr/lib/python3.12/site-packages/bleak/__init__.py", line 605, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/bleak/backends/bluezdbus/client.py", line 146, in connect
async with async_timeout(timeout):
File "/usr/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
raise TimeoutError from exc_val
TimeoutError
I tried printing with this script. It will connect to my printer but it errors out with the following error:
I'm using endeavourOS (arch linux) on a Dell Latitude E5450