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

Printer can no longer be discovered #165

Open
Soggytoast111 opened this issue Dec 22, 2024 · 2 comments
Open

Printer can no longer be discovered #165

Soggytoast111 opened this issue Dec 22, 2024 · 2 comments

Comments

@Soggytoast111
Copy link

Soggytoast111 commented Dec 22, 2024

Very strange issue -

I've been using the script for a few days, not much problem. I couldn't get it to work in Windows, but it was working fine in WSL Ubuntu with the USB WSL passthrough.

Today, no longer detected. Multiple reboots of both my system and the printer didn't work. Tried turning on/off the Editor Line mode too.

I can see the printer in Ubuntu with lsusb, but the discover command no longer shows it, and of course doesn't print.

I spent a few hours trying to track down how this could happen but I'm out of ideas for now. I don't think it's a USB driver problem because of lsusb.

I have the QL-800.

@wwqwq2313
Copy link

Hello, we tried to solve the issue.

This is what we did:

This change improves the USB device detection and error handling in the pyusb backend. It adds more robust error checking when finding and configuring the USB device, and includes a retry mechanism for device detection. This should help address issues where the printer is visible to the system but not detected by the script.

You can review changes in this commit: wwqwq2313@b7b99a0.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

@Soggytoast111
Copy link
Author

Wow thanks I'll try that.

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