Web lists-archives.com

Tea4CUPS: TEABILLING reports error




Hi,

 

I have tea4cups configured to power on my printer before printing. In order to do this, I prepended tea4cups:/ to the DeviceURI in printers.conf (if I remove this and power on the printer manually before printing, everything works as expected):

 

/etc/cups/printers.conf:
DeviceURI tea4cups:/http://hpljwlan:631/ipp/

I configured the printer power on script:

 

/etc/cups/tea4cups.conf:
prehook_sispmctl : /usr/local/bin/printeron

 

but I get unfortunately an error in /var/log/cups/error_log
with every print job and the job is stopped.

 

E [30/May/2018:08:51:40 +0200] [Job 16] Tea4CUPS (PID 9689) : Traceback (most recent call last):
E [30/May/2018:08:51:40 +0200] [Job 16] Tea4CUPS (PID 9689) :   File \"/usr/lib/cups/backend/tea4cups\", line 1502, in <module>
E [30/May/2018:08:51:40 +0200] [Job 16] Tea4CUPS (PID 9689) :     wrapper.exportAttributes()
E [30/May/2018:08:51:40 +0200] [Job 16] Tea4CUPS (PID 9689) :   File \"/usr/lib/cups/backend/tea4cups\", line 1214, in exportAttributes
E [30/May/2018:08:51:40 +0200] [Job 16] Tea4CUPS (PID 9689) :     os.environ[\"TEABILLING\"] = self.JobBilling or \"\"
E [30/May/2018:08:51:40 +0200] [Job 16] Tea4CUPS (PID 9689) :   File \"/usr/lib/python2.7/os.py\", line 473, in __setitem__
E [30/May/2018:08:51:40 +0200] [Job 16] Tea4CUPS (PID 9689) :     putenv(key, item)
E [30/May/2018:08:51:40 +0200] [Job 16] Tea4CUPS (PID 9689) : TypeError: putenv() argument 2 must be string, not int

Is seems something goes wrong while setting the TEABILLING environement variable.

 

Has anybody an idea why that could be?

 

Many thanks

Rainer

 

 

--

Rainer Dorsch

http://bokomoko.de/