You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symptoms: nothing prints. Vague ERROR: <jobname> output each time a job is accepted; running with -v provides no more detail on the error. Suppressing exception handling in the appropriate block revealed the following exception, referring to the options dict to the cups_connection (at cloudprint.py:421):
TypeError: Keys and values must be strings
The simplest way to fix this is simply to reverse the lines setting up the options dict, ensuring everything is a str:
the latter might not result in pretty output but it'll at least preserve the connecting user ID.
I wasn't sure how you'd like to approach the solution so thought an issue was better than a PR -- but happy to prepare one if it's easier.
To be clear, my username doesn't contain anything that's not in ASCII, so assume one of my libraries is returning unicode "unexpectedly" (I haven't investigated which, but since either change will work with string job IDs I don't see that it matters).
Environment: Debian 8, Python 2.7.9, dependencies supplied by a questionable mix of Debian repositories and pypi (versions available on request if you really care!)
The text was updated successfully, but these errors were encountered:
* produce debug-level log with exception detail if printing fails
* exclude options whose values are the string 'None'
* ensure ownerId is passed to CUPS as escaped-unicode string.
4gra
linked a pull request
Dec 11, 2018
that will
close
this issue
On reflection it looks like this repository is not frequently maintained, and I'm relatively confident of my commit across environments, so I've made a PR mainly to increase visibility of the fix.
Symptoms: nothing prints. Vague
ERROR: <jobname>
output each time a job is accepted; running with-v
provides no more detail on the error. Suppressing exception handling in the appropriate block revealed the following exception, referring to the options dict to thecups_connection
(at cloudprint.py:421):The simplest way to fix this is simply to reverse the lines setting up the options dict, ensuring everything is a
str
:cloudprint/cloudprint.py:411-412:
...but it occurred to me that it might be wiser to escape the userID to avoid exceptions where the userID can't be represented in ASCII:
the latter might not result in pretty output but it'll at least preserve the connecting user ID.
I wasn't sure how you'd like to approach the solution so thought an issue was better than a PR -- but happy to prepare one if it's easier.
To be clear, my username doesn't contain anything that's not in ASCII, so assume one of my libraries is returning unicode "unexpectedly" (I haven't investigated which, but since either change will work with string job IDs I don't see that it matters).
Environment: Debian 8, Python 2.7.9, dependencies supplied by a questionable mix of Debian repositories and pypi (versions available on request if you really care!)
The text was updated successfully, but these errors were encountered: