[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#905986: marked as done (cups-tea4cups: TEABILLING reports error)



Your message dated Mon, 03 Sep 2018 07:18:57 +0000
with message-id <E1fwj8T-0000oT-0M@fasolo.debian.org>
and subject line Bug#905986: fixed in tea4cups 3.14~alpha0+svn3576-1
has caused the Debian Bug report #905986,
regarding cups-tea4cups: TEABILLING reports error
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
905986: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905986
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: cups-tea4cups
Version: 3.13~alpha0+svn3565-4
Severity: important
Tags: patch

Dear Maintainer,

[this bug report corresponds to this discussion thread on debian-user

https://lists.debian.org/debian-user/2018/05/msg01024.html

(cont'd at next month)
https://lists.debian.org/debian-user/2018/06/msg00453.html ]


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.

There are more details listed in the mailing list thread linked above, but I think there are not very relevant.


In the meantime Daniel reported that he sees the same problem also in Arch and KDE Neon:

https://lists.debian.org/debian-user/2018/08/msg00505.html

Via private mail he pointed out that this patch fixes the problem for him in Arch linux:

https://gitlab.com/dadosch/tea4cups/commit/1aac1f51ed35300891b3f0f01b34b37b523f1736

I applied it on my Debian buster system and it fixes my issue as well.

All credits for the fix go to Daniel.

Thanks
Rainer


-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (110, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de:en_US (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cups-tea4cups depends on:
ii  cups    2.2.8-5
ii  python  2.7.15-3

cups-tea4cups recommends no packages.

cups-tea4cups suggests no packages.

-- Configuration Files:
/etc/cups/tea4cups.conf changed:
[global]
directory : /var/spool/cups/
prehook_sispmctl : /usr/local/bin/printeron


-- no debconf information

--- End Message ---
--- Begin Message ---
Source: tea4cups
Source-Version: 3.14~alpha0+svn3576-1

We believe that the bug you reported is fixed in the latest version of
tea4cups, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 905986@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mike Gabriel <sunweaver@debian.org> (supplier of updated tea4cups package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 03 Sep 2018 08:43:28 +0200
Source: tea4cups
Binary: cups-tea4cups
Architecture: source
Version: 3.14~alpha0+svn3576-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Printing Team <debian-printing@lists.debian.org>
Changed-By: Mike Gabriel <sunweaver@debian.org>
Description:
 cups-tea4cups - Swiss Army's knife of advanced CUPS administrators
Closes: 905986
Changes:
 tea4cups (3.14~alpha0+svn3576-1) unstable; urgency=medium
 .
   * New upstream SVN snapshot.
     - Fixes a problem where the job billing attribute sometimes is an integer.
       (Closes: #905986).
   * debian/rules:
     + Create repacked orig tarball in ../ rather than in ./.
   * debian/control:
     + Bump Standards-Version: to 4.2.1. No changes needed.
   * debian/copyright:
     + Use secure URI for copyright format reference.
     + Update copyright attributions.
Checksums-Sha1:
 e4ce40ee7aac934ae6ba669615aa511a89c40dc7 2100 tea4cups_3.14~alpha0+svn3576-1.dsc
 cb2d92d42e814140755ec699a43c0050762de566 24984 tea4cups_3.14~alpha0+svn3576.orig.tar.xz
 e022486869f62409de8266605a812d91c7bef668 4400 tea4cups_3.14~alpha0+svn3576-1.debian.tar.xz
 b3064fe3bea8eda8cf7142dfb1057f295205cb88 7267 tea4cups_3.14~alpha0+svn3576-1_source.buildinfo
Checksums-Sha256:
 bb32c9010b4c88392e81c19a46a9dadadf7ebc21621092c094ed16ca4fb4c29c 2100 tea4cups_3.14~alpha0+svn3576-1.dsc
 2a67d3ac936e8bf1eb98f4a0ab9d45179c7e4bdb8d143b04730b86725bcd754f 24984 tea4cups_3.14~alpha0+svn3576.orig.tar.xz
 63bc2f0012a42ddde210a3a9a0617bcf490becc1b29130c5df503fe4447de8b3 4400 tea4cups_3.14~alpha0+svn3576-1.debian.tar.xz
 f28cdb4b283d9a50e902c9b80ec8c91b6adb58b2761ac441d070a0fbf60b7764 7267 tea4cups_3.14~alpha0+svn3576-1_source.buildinfo
Files:
 12218f842e22d3a2424bd2808f49ca2a 2100 text optional tea4cups_3.14~alpha0+svn3576-1.dsc
 148a24bd3610f51a2d88bd968cf9e094 24984 text optional tea4cups_3.14~alpha0+svn3576.orig.tar.xz
 2def0affa952bb4c6b1475ede9081fe6 4400 text optional tea4cups_3.14~alpha0+svn3576-1.debian.tar.xz
 6bea6564c766a1df1747d5549b3a94da 7267 text optional tea4cups_3.14~alpha0+svn3576-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJJBAEBCAAzFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAluM3OMVHHN1bndlYXZl
ckBkZWJpYW4ub3JnAAoJEJr0azAldxsx2L4P/2zstZ/7Tw2XGy/sqkMNffLpMVac
ArGNG+LHQkMQNstAtTqZwwRerD4y0+3Ne6HWMbodp40ly3DFIs3WxVbQdVi3kFy9
KpbGCRbH90t+K39ZuBsufexzrkcMa+dSm60piZ2vorAeo1C+z8/+CkN8cAfo0OaF
ehggCkmHiSbW8lq32sQiDrWSF8gl8sXOE6onY+UJvgYOwZyFAqMHoFxPYc/0mN/T
LG62jwHnnwG2WukWtm4AbxV66NZBygMDm5eTVBtIREcTnzwHi+WZmZNFVqRdamgd
9jjLoaG8d8okkd8qgVGyixiVAT0rtrzmT2MpkO31/+JNrz6isac902QuGyKdJ4EA
rzX0BrZpOhwyHoCSa6jgWK6RnsXNL5xlKdaQi8nJoHXHUvyerXxmOI5ykaZ2TrIw
SIIWoTsuz4j8arCanqgIM1LKnFscbAiz6HuSbicchcZcuMfa5aCVh6AyV5ZcXvdQ
TVgOwF3rvolJT07CELvL/j19nBUsjF6G9jGCaIdX4shNL/jYJ/Nav5DlprZB4VXF
hdw49/rOU8bARqdhld7nO/jmPetrWsAJFQbc90spNMQHX8YMIRCE6kPsu3S/vtBV
T66GvMXeObDt9z0FyUP1KImty3AzjvSWzGIsYNcGQ96UUiwXVhZWKX0c6wQlmYq8
all0wC1Sp3IOgT9Z
=Teye
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: