Daniel J. Soto | 26 Dec 10:14
Picon

Restrict color printing and apply different quotas to color/B&W printer

Hello,

I've been reading in mailing list files some posts about the subject
but they was mainly old and not enought clear messages (to me).

It is possible to restrict color printing (to some users) and apply
different quotas (color and B&W quotas) to the same printer?

If it is explained in other posts or in any docs (that I'm not able to
find), could anybody send that links to me, please?

(I'm reading about ink accounting, ink coverage,... but I've not
understood what I must to do or how I can configure PyKota...)

Thanks in advance,
Daniel.
kumaresan m | 24 Dec 05:34
Picon

Pykota configuration

Dear Team,


                      Does any one tell me pykota configuration for ubunut 10.04 and for the windows client also.I have tried the pykota installation under ubuntu 10.04 but i am getting lot of error on postgresql.please help me.

--
Thanks and Regards
M.Kumaresan
Care IT Solutions
Ph:8754563426

Picon
Picon

quota enforcement

Hi

I've been using Pykota for about three years and everything has been ok, but, I have a doubt about quota enforcement. By using the system we realized that users could print beyond their quota balance, not a lot of pages but a few that allow them to finish a final job. We used to call that "emergency balance" but I don't know how to calculate this and tell our users: you will print maximum 20 pages away from your balance. Has anyone found any method to calculate that?


Thanks in advance

 

 

Alfredo Flores H.
Unidad de Desarrollo Tecnológico - UDT

alfredo.flores-ePCmL+LUQWwX+IlteNf3sA@public.gmane.org
Teléfono: +56 2 978 3427

Universidad de Chile, Facultad de Economía y Negocios
Diagonal Paraguay 257 of 1704 | Teléfono: +56 2 978 3433


Picon
Gravatar

cupspykota backend failed

This is the syslog message that I receive every time I try to print something. These lines were extracted from cups error_log file:


E [16/Dec/2011:12:30:01 -0300] [Job 6] Stopping unresponsive job!
E [16/Dec/2011:12:30:12 -0300] [Job 6] PyKota v1.27alpha13_unofficial
E [16/Dec/2011:12:30:12 -0300] [Job 6] cupspykota backend failed
E [16/Dec/2011:12:30:12 -0300] [Job 6] Traceback (most recent call last):
E [16/Dec/2011:12:30:12 -0300] [Job 6] File "/usr/lib/cups/backend/cupspykota", line 1342, in <module>
E [16/Dec/2011:12:30:12 -0300] [Job 6] wrapper.initBackendParameters()
E [16/Dec/2011:12:30:12 -0300] [Job 6] File "/usr/lib/cups/backend/cupspykota", line 256, in initBackendParameters
E [16/Dec/2011:12:30:12 -0300] [Job 6] copies, fname, sys.argv[5].strip())
E [16/Dec/2011:12:30:12 -0300] [Job 6] File "/usr/local/lib/python2.7/dist-packages/pykota/cups.py", line 51, in __init__
E [16/Dec/2011:12:30:12 -0300] [Job 6] self.retrieveAttributesFromCUPS()
E [16/Dec/2011:12:30:12 -0300] [Job 6] File "/usr/local/lib/python2.7/dist-packages/pykota/cups.py", line 114, in retrieveAttributesFromCUPS
E [16/Dec/2011:12:30:12 -0300] [Job 6] self.OriginalUserName = self.OriginatingUserName[:]
E [16/Dec/2011:12:30:12 -0300] [Job 6] TypeError: 'NoneType' object is not subscriptable

I've googled this error but I found nothing. Does anyone here have any idea of how can I get this through?

Thanks a lot.

--
Ass: Arthur Rodrigues

Aluno de Mestrado em Ciência da Computação pelo MDCC / UFC
Bacharel em Computação pela UFC em 2010
Departamento de Computação
Universidade Federal do Ceará

Picon
Gravatar

Problem with SNMP Tools Availability ...

Hello,

I am trying to configure Pykota for use with a set of Xerox printers 
that use IPP as the protocol. I have the base system setup with CUPS 
recognizing the printer and with the printer set up to use Pykota as the 
passthrough however printing still doesn't work.

When I run "python checkdeps.py" I get the following output below. I 
noted that it says SNMP Tools are not available but I installed PySNMP. 
What else do I need to do?

Thanks.

-------------------

Checking PyKota dependencies...
Checking for Python-PygreSQL availability : NO.
ERROR : Python-PygreSQL not available !
PygreSQL is mandatory if you want to use PostgreSQL as the quota 
database backend.
See http://www.pygresql.org
Checking for Python-SQLite availability : NO.
ERROR : Python-SQLite not available !
Python-SQLite is mandatory if you want to use SQLite as the quota 
database backend.
See http://www.pysqlite.org
Checking for MySQL-Python availability : OK
Checking for Python-egenix-mxDateTime availability : OK
Checking for Python-LDAP availability : OK
Checking for Python-OSD availability : NO.
ERROR : Python-OSD not available !
Python-OSD is recommended if you plan to use the X Window On Screen Display
print quota reminder named pykosd. See http://repose.cx/pyosd/
Checking for Python-SNMP availability : OK
Checking for Python-JAXML availability : OK
Checking for Python-ReportLab availability : NO.
ERROR : Python-ReportLab not available !
Python-ReportLab is required if you plan to have PyKota generate banners.
See http://www.reportlab.org/
Checking for Python-Imaging availability : OK
Checking for Python-Psyco availability : NO.
ERROR : Python-Psyco not available !
Python-Psyco speeds up parsing of print files, you should use it.
See http://psyco.sourceforge.net/
Checking for Python-pkpgcounter availability : OK
Checking for Python-PAM availability : NO.
ERROR : Python-PAM not available !
Python-PAM is recommended if you plan to use pknotify+PyKotIcon.
Grab it from http://www.pangalactic.org/PyPAM/
Checking for Python-pkipplib availability : OK
Checking for Python-chardet availability : OK
Checking for GhostScript availability : OK
Checking for SNMP Tools availability : NO.
ERROR : SNMP Tools not available !
SNMP Tools are needed if you want to use SNMP enabled printers.
Checking for Netatalk availability : NO.
ERROR : Netatalk not available !
Netatalk is needed if you want to use AppleTalk enabled printers.

-------------------

Regards,
Chris K.
Picon

pykota not save the user name

hi.
I have the following problem after 1.26 pykota implement and that I am not keeping the name of the user that sent the print job. All machines are controlled by a Microsoft Active Directory.
pykota puts me as the user name "noreply".

aids are welcome.

Thanks in advance


Carlos R.
La información aquí contenida es para uso exclusivo de la persona o entidad de destino. Está estrictamente prohibida su utilización, copia, descarga, distribución, modificación y/o reproducción total o parcial, sin el permiso expreso de la Superservicios, ya que su contenido puede ser de carácter confidencial y/o contener material privilegiado. Si usted recibió esta información por error, por favor contacte en forma inmediata a quien lo envió y borre este material de su computador. La Superservicios no es responsable por la información contenida en esta comunicación, el directo responsable es quien la firma o el autor de la misma.
Daniel J. Soto | 25 Nov 16:33
Picon

How to obtain the file type of printed docs

Hello,

I'm trying to count the different types of documents (pdf, odt, doc,...) printed through pykota. I'm looking for in the database for a table/field which that info. but I only find two fields in jobhistory table (filename and title) with not valid data (NULL or '/var/spool/cups/d00280-001' or 'test page'...).

Can I use any data of the pykota db for obtain that information?

Thanks in advance,
Daniel.
Daniel Kahn Gillmor | 17 Nov 17:12

pykota svn failing?

Hi pykota folks --

it looks like there is some sort of problem with the svn repository
around revision 3395, 3396, and 3397.  note the messages below like:

svn: Can't open file '/var/lib/subversion/printing/db/revs/3395': Structure needs cleaning

0 dkg <at> pip:~/tmp$ svn co -q http://svn.pykota.com/pykota/trunk pykota
0 dkg <at> pip:~/tmp$ cd pykota
0 dkg <at> pip:~/tmp/pykota$ svn status
0 dkg <at> pip:~/tmp/pykota$ svn info
Path: .
URL: http://svn.pykota.com/pykota/trunk
Repository Root: http://svn.pykota.com
Repository UUID: 6164e503-883a-4105-99cd-1bc75b88fced
Revision: 3554
Node Kind: directory
Schedule: normal
Last Changed Author: jerome
Last Changed Rev: 3554
Last Changed Date: 2011-01-18 15:28:56 -0500 (Tue, 18 Jan 2011)

0 dkg <at> pip:~/tmp/pykota$ svn log -r3554
------------------------------------------------------------------------
r3554 | jerome | 2011-01-18 15:28:56 -0500 (Tue, 18 Jan 2011) | 2 lines

Fixed a character encoding problem.

------------------------------------------------------------------------
0 dkg <at> pip:~/tmp/pykota$ svn log -r3300
------------------------------------------------------------------------
r3300 | jerome | 2008-01-26 18:16:50 -0500 (Sat, 26 Jan 2008) | 2 lines

Ensures email headers will be ok.

------------------------------------------------------------------------
0 dkg <at> pip:~/tmp/pykota$ svn log -r3395
svn: Can't open file '/var/lib/subversion/printing/db/revs/3395': Structure needs cleaning
1 dkg <at> pip:~/tmp/pykota$ svn log -r3394
------------------------------------------------------------------------
0 dkg <at> pip:~/tmp/pykota$ svn log -r3396
svn: Can't open file '/var/lib/subversion/printing/db/revs/3395': Structure needs cleanin
1 dkg <at> pip:~/tmp/pykota$ svn log -r3397
svn: Can't open file '/var/lib/subversion/printing/db/revs/3395': Structure needs cleaning
1 dkg <at> pip:~/tmp/pykota$ svn log -r3398
------------------------------------------------------------------------
r3398 | jerome | 2008-07-10 17:46:01 -0400 (Thu, 10 Jul 2008) | 2 lines

Fixed non-ascii characters inside a docstring.

------------------------------------------------------------------------
0 dkg <at> pip:~/tmp/pykota$ 

Maybe it's worth running "svnadmin verify" and/or "svnadmin recover" on
the repo?  It's been a long time since i've administered svn so i don't
have a clear idea of what cleanup specifically needs to be done or how
to do it, unfortunately.

I hope this report is useful.  Thanks for pykota!

Regards,

        --dkg
Picon

Question

Hi Jerome,

The data
that appear in the log (/ var / log / messages) when a user sends an impression "noreply" where you take pykota?.
There are ways pykota take the name of the user who is logean in Active Directory?




Regards.

Carlos R.
La información aquí contenida es para uso exclusivo de la persona o entidad de destino. Está estrictamente prohibida su utilización, copia, descarga, distribución, modificación y/o reproducción total o parcial, sin el permiso expreso de la Superservicios, ya que su contenido puede ser de carácter confidencial y/o contener material privilegiado. Si usted recibió esta información por error, por favor contacte en forma inmediata a quien lo envió y borre este material de su computador. La Superservicios no es responsable por la información contenida en esta comunicación, el directo responsable es quien la firma o el autor de la misma.
Ryan Novosielski | 17 Nov 07:32
Favicon

RPM repository missing


Hi all,

I see that the repository located here:
http://www.math.ohiou.edu/pub/casit/pykota/

...is gone. I'm assuming Matt may no longer work there.

Is there a replacement?
--

-- 
---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |novosirj@... - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
Attachment (novosirj.vcf): text/x-vcard, 331 bytes
Ben Owen | 16 Nov 15:22

CUPS error

Hello,

I am new to pykota, and love it so far. I am running several of my CUPS (version 1.3.9) queues through Pykota
(version 1.27alpha13)  to capture data before I turn on quotas. All are working well except one. I am having
trouble with one queue for a networked Dell printer (Dell 1130n Laser Printer). The printer works great
when just using the socket address (socket://192.168.2.34), but when I run it through cupspykota, I get
the following error in CUPS:

"unpack requires a string argument of length 2"

I have changed the page accounting method from hardware(snmp) to software in /etc/pykota/pykota.conf,
but still get the same error.

CUPS is using the Dell 1130n driver.

Has anyone seen this before?

Pykota is really awesome. Thanks for your help.

Ben


Gmane