Daniel J. Soto | 1 Dec 13:35
Picon

Re: How to obtain the file type of printed docs

Hi,

thanks very much, really you have been explained ok.

Regards!
Picon

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.
(Continue reading)

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
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


Ryan Novosielski | 16 Dec 17:39
Favicon

Re: quota enforcement


Our system that we use here is proprietary (non-Pykota), but it suffers
from the same problem. We will not know the pagecount until a job is
done since we're using hardware page counts. We just tell people that
this is so, and haven't had much trouble with it. When people want to
buy additional credits, they have to also pay for the negative balance.

On 12/16/2011 11:03 AM, Alfredo Flores Hernández wrote:
> 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?

--

-- 
---- _  _ _  _ ___  _  _  _
|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, 332 bytes
Matthew Hyclak | 16 Dec 18:27
Picon

Re: quota enforcement

I'm doing this from memory, so the directives may not be exact. You can try to calculate the job size with the preaccount directive which should use pkpgcounter to attempt to figure out the job before it goes to the printer. I think there are a couple of options that let you decide what you want to do if calculated size is greater than remaining credits/quota. There are some caveats, if I remember right, to using that method. For example, some printers report duplex jobs as 2 pages, some as 1. pkpgcounter may not correctly parse n-Up jobs, or may not be able to parse the job at all.

I think there's some flexibility in the options, but again, it's just going to come down to a matter of choice/policy as to how the system handles it.

Matt

2011/12/16 Alfredo Flores Hernández <alflores-ePCmL+LUQWwX+IlteNf3sA@public.gmane.org>
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



_______________________________________________
Technical Support : http://www.pykota.com/technical-support/
Trouble Ticketing System : http://otrs.librelogiciel.com/otrs/customer.pl
Download : http://www.pykota.com/software/pykota/download/tarballs
pykota mailing list pykota <at> lists.pykota.com
http://lists.pykota.com/mailman/listinfo/pykota
DON'T POST IN HTML !


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

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.
alet | 28 Dec 09:18
Gravatar

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

On Mon, Dec 26, 2011 at 10:14:33AM +0100, Daniel J. Soto wrote:
>
> It is possible to restrict color printing (to some users) and apply
> different quotas (color and B&W quotas) to the same printer?

No it's not possible if you want to use the same print queue for color
and B&W printing.

If you create two print queues then yes you can restrict some users and
others not.

With a single print queue, all users will only be restricted by their
number of credits and the costs you've associated with each color.

bye

Jerome Alet

Daniel J. Soto | 28 Dec 09:29
Picon

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

Hi,

thanks very much for your reply.

What is the tecnical problem to do that?

I asked to me what is the tecnical problem to assign color and b&w
quotas to an user for one printer, too.

This two features would make PyKota a great product, do not you think?

Regards,
Daniel.

2011/12/28  <alet@...>:
> On Mon, Dec 26, 2011 at 10:14:33AM +0100, Daniel J. Soto wrote:
>>
>> It is possible to restrict color printing (to some users) and apply
>> different quotas (color and B&W quotas) to the same printer?
>
> No it's not possible if you want to use the same print queue for color
> and B&W printing.
>
> If you create two print queues then yes you can restrict some users and
> others not.
>
> With a single print queue, all users will only be restricted by their
> number of credits and the costs you've associated with each color.
>
> bye
>
> Jerome Alet
>

Gmane