[Tutor] Something new in line printing?

Cameron Simpson cs at cskk.id.au
Tue Nov 12 02:21:56 EST 2019


On 11Nov2019 22:00, Ken Green <beachkidken at gmail.com> wrote:
>>Modern Linux-es prefer to run printers through cups, and HP require an 
>>extra apt-get to receive the facilities to drive/monitor printers (and 
>>scanners, if appropriate).
>>(?hpijs - Fedora's s/w name(s) may be different to Ubuntu/Debian's)
>>
>Yes, I have been able to run print jobs in Ubuntu 18.04.3 except 
>Python 2 and 3. Okay, you gave me a head up on apt-get something from 
>HP. Will search tomorrow. That would be the best course of action to 
>take. Failing that, will use my Windows 10 laptop that has Python 3 
>already installed. Thanks.

You're testing the wrong thing. Your python programme is doing the 
equivalent of this shell command:

  echo hello | lpr

Does that work from the command prompt? I suspect it will fail the same 
way as your Python programme, and when you have a working "lpr" command 
at the shell prompt, you will find that same command will work from 
within Python.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Tutor mailing list