forwarded 905986 http://lists.pykota.com/pipermail/tea4cups/2018-August/000315.html thanks
On Thu 23 Aug 2018 at 16:47:14 +0200, Rainer Dorsch wrote: > Hi Brian, Hi Rainer. > the issue is back faster then I thought :-/ Unfortunate. Is this always reproducible? > > The error_log contains > > E [23/Aug/2018:09:52:42 +0200] Missing value on line 23 of /var/cache/cups/ > job.cache. > E [23/Aug/2018:09:52:42 +0200] Missing value on line 36 of /var/cache/cups/ > job.cache. > E [23/Aug/2018:09:52:42 +0200] Missing value on line 625 of /var/cache/cups/ > job.cache. > E [23/Aug/2018:09:52:42 +0200] Missing value on line 805 of /var/cache/cups/ > job.cache. > E [23/Aug/2018:09:52:42 +0200] Missing value on line 1273 of /var/cache/cups/ > job.cache. > E [23/Aug/2018:16:34:21 +0200] [Job 123] Tea4CUPS (PID 29747) : Traceback > (most recent call last): > E [23/Aug/2018:16:34:21 +0200] [Job 123] Tea4CUPS (PID 29747) : File \"/usr/ > lib/cups/backend/tea4cups\", line 1502, in <module> > E [23/Aug/2018:16:34:21 +0200] [Job 123] Tea4CUPS (PID 29747) : > wrapper.exportAttributes() > E [23/Aug/2018:16:34:21 +0200] [Job 123] Tea4CUPS (PID 29747) : File \"/usr/ > lib/cups/backend/tea4cups\", line 1214, in exportAttributes > E [23/Aug/2018:16:34:21 +0200] [Job 123] Tea4CUPS (PID 29747) : > os.environ[\"TEABILLING\"] = self.JobBilling or \"\" > E [23/Aug/2018:16:34:21 +0200] [Job 123] Tea4CUPS (PID 29747) : File \"/usr/ > lib/python2.7/os.py\", line 473, in __setitem__ > E [23/Aug/2018:16:34:21 +0200] [Job 123] Tea4CUPS (PID 29747) : > putenv(key, item) > E [23/Aug/2018:16:34:21 +0200] [Job 123] Tea4CUPS (PID 29747) : TypeError: > putenv() argument 2 must be string, not int > E [23/Aug/2018:16:37:44 +0200] [Job 123] Tea4CUPS (PID 29935) : Traceback > (most recent call last): > E [23/Aug/2018:16:37:44 +0200] [Job 123] Tea4CUPS (PID 29935) : File \"/usr/ > lib/cups/backend/tea4cups\", line 1502, in <module> > E [23/Aug/2018:16:37:44 +0200] [Job 123] Tea4CUPS (PID 29935) : > wrapper.exportAttributes() > E [23/Aug/2018:16:37:44 +0200] [Job 123] Tea4CUPS (PID 29935) : File \"/usr/ > lib/cups/backend/tea4cups\", line 1214, in exportAttributes > E [23/Aug/2018:16:37:44 +0200] [Job 123] Tea4CUPS (PID 29935) : > os.environ[\"TEABILLING\"] = self.JobBilling or \"\" > E [23/Aug/2018:16:37:44 +0200] [Job 123] Tea4CUPS (PID 29935) : File \"/usr/ > lib/python2.7/os.py\", line 473, in __setitem__ > E [23/Aug/2018:16:37:44 +0200] [Job 123] Tea4CUPS (PID 29935) : > putenv(key, item) > E [23/Aug/2018:16:37:44 +0200] [Job 123] Tea4CUPS (PID 29935) : TypeError: > putenv() argument 2 must be string, not int > E [23/Aug/2018:16:37:51 +0200] [Job 123] Tea4CUPS (PID 29947) : Traceback > (most recent call last): > E [23/Aug/2018:16:37:51 +0200] [Job 123] Tea4CUPS (PID 29947) : File \"/usr/ > lib/cups/backend/tea4cups\", line 1502, in <module> > E [23/Aug/2018:16:37:51 +0200] [Job 123] Tea4CUPS (PID 29947) : > wrapper.exportAttributes() > E [23/Aug/2018:16:37:51 +0200] [Job 123] Tea4CUPS (PID 29947) : File \"/usr/ > lib/cups/backend/tea4cups\", line 1214, in exportAttributes > E [23/Aug/2018:16:37:51 +0200] [Job 123] Tea4CUPS (PID 29947) : > os.environ[\"TEABILLING\"] = self.JobBilling or \"\" > E [23/Aug/2018:16:37:51 +0200] [Job 123] Tea4CUPS (PID 29947) : File \"/usr/ > lib/python2.7/os.py\", line 473, in __setitem__ > E [23/Aug/2018:16:37:51 +0200] [Job 123] Tea4CUPS (PID 29947) : > putenv(key, item) > E [23/Aug/2018:16:37:51 +0200] [Job 123] Tea4CUPS (PID 29947) : TypeError: > putenv() argument 2 must be string, not int > > > I did not find anything specific for a full error_log in the wiki > > https://wiki.debian.org/Printing > > can you post a link? I should have been a bit more helpful initially: https://wiki.debian.org/DissectingandDebuggingtheCUPSPrintingSystem#The_CUPS_Error_Log Basically - empty the error_log and print. I suggest that you print as I described in my previous mail to test the wrapping function. That is, no hooks used. The data would still be useful to have. > Thanks > Rainer > > PS: Needless to say after I added the patch, the issue went away. Upstream has now put the patch in trunk: http://svn.pykota.com/tea4cups/trunk/tea4cups os.environ["TEABILLING"] = self.JobBilling or "" try : self.JobBilling = str(self.JobBilling) # In some cases it seems to be an integer : bug in pkipplib or something else ??? except : pass Regards, Brian.