-
Notifications
You must be signed in to change notification settings - Fork 70
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
"skipping" my printer #61
Comments
Same issue here. Its now to that state that all printer that should be shared are skipped. Why would that happen? |
Looking at the code, I'd start with a Cloud Print authentication. Monitor the output to see if there are any messages about it. Note that if you do not use the '-u' option, the authentication will timeout after two weeks. |
I too am having a problem where a printer is skipped. I have a hundred (or so) printers on a cups system. The names of the two printers I'm interested in are "enet" and "enetcolor. I start cloudprint with "-i enet". The "enetcolor" printer works, but I get this message: What (besides authentication problems) should I look for? |
That message happens when there is cups error, or a Unicode error. Can you print to the affected printers straight from the Linux host? Are there extended Unicode characters in the printer name or description, etc? (Unicode support is not mature in the package). |
I can print from my FreeBSD client (where cloudprint is running). For comparison, one of the ones that works is called "enetcolor" So, cups seems to work for things besides cloudprint, and I don't see anything but ASCII in the name and description in cups. |
I'm not a Python coder so I probably did something wrong, but looking at the concerns about encoding I changed line 347 in cloudprint.py from Of course I don't know what I might have hurt in the process. |
Good catch. I took a quick look at the Go client, and didn't find evidence that it considers encoding at all. |
It looks like we only support "Globalized" ppd files. The base strings should be the ASCII subset of latin-1 and the the I18N strings are in utf-8. |
From that link" We use a LanguageEncoding value of ISOLatin1 and limit the allowed base translation strings to ASCII to avoid character coding issues that would otherwise occur ... implying that the existing utf-8 decode is correct. I wonder how to properly handle this - try whichever encoding doesn't throw an exception? |
My guess is that we need to parse the ppd files as byte strings into a dict. Then we can use the This other option may be that google updated the parsing on the server size and we can send it as a raw text string now. |
On Mon, Mar 7, 2016 at 11:13 PM, Jason [email protected] wrote:
That would be my guess. |
Had an issue with cloudprint not working. Now when I start cloudprint, it says "Skipping" and my printer name, and the printer isnt shared. What can I do to solve this?
Brent
The text was updated successfully, but these errors were encountered: