Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troublesooting bluez error #74

Closed
samthelion17 opened this issue Jul 14, 2024 · 2 comments
Closed

Troublesooting bluez error #74

samthelion17 opened this issue Jul 14, 2024 · 2 comments

Comments

@samthelion17
Copy link

I get this everytime I try to print:

⏳ Applying Floyd-Steinberg dithering to image...
✅ Done.
✅ Read image: (288, 384) (h, w) pixels
✅ Generated BLE commands: 11085 bytes
⏳ Connecting to 69:CE:2A:FF:B5:2A...
Traceback (most recent call last):
  File "/home/samthelion17/Desktop/catprinter/./print.py", line 83, in <module>
    main()
  File "/home/samthelion17/Desktop/catprinter/./print.py", line 79, in main
    asyncio.run(run_ble(data, device=args.device))
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/samthelion17/Desktop/catprinter/catprinter/ble.py", line 80, in run_ble
    async with BleakClient(address) as client:
  File "/home/samthelion17/Desktop/catprinter/venv/lib/python3.10/site-packages/bleak/backends/client.py", line 61, in __aenter__
    await self.connect()
  File "/home/samthelion17/Desktop/catprinter/venv/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 278, in connect
    assert_reply(reply)
  File "/home/samthelion17/Desktop/catprinter/venv/lib/python3.10/site-packages/bleak/backends/bluezdbus/utils.py", line 23, in assert_reply
    raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.bluez.Error.NotAvailable] br-connection-profile-unavailable

My device looks exactly like yours but it's called SC03h-CE69, It is NOT recognized when I connect it via USB (I know some of these printers do get recognized)

@mariunaise
Copy link

Have you found a solution for this problem?
I have a similar device called SC03-80B9 and get the same error.

@samthelion17
Copy link
Author

Have you found a solution for this problem? I have a similar device called SC03-80B9 and get the same error.

Not really, I gave my cat printer away I got myself the M02, and it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants