Ticket #108 (closed defect: worksforme)
lpr without printer name does not work
Reported by: | kchen | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Keywords: | ||
Cc: | Fixed in version: | ||
Upstream bug: |
Description
kchen@scyther:~$ lpr -Poof foo.ps
[file prints]
kchen@scyther:~$ lpr foo.ps
Traceback (most recent call last):
File "/usr/bin/lpr", line 116, in <module>
queue = getPrintQueue(command, sys.argv)
File "/usr/bin/lpr", line 102, in getPrintQueue
h = hesiod.Lookup(os.uname()[1], 'cluster')
AttributeError?: 'module' object has no attribute 'Lookup'
Change History
comment:2 Changed 16 years ago by broder
Hmm...I can't reproduce either of these errors on a machine either with or without clusterinfo set.
Are you sure that you had all available updates when you were trying this? It's possible you were seeing an old version of the Python hesiod module.
comment:3 Changed 16 years ago by kchen
- Status changed from new to closed
- Resolution set to worksforme
The original bug report was on feisty, and while the system was fully up to date, it appears that the feisty packages are no longer being updated. (I had previously assumed, given the continued existence of the packages, that they were still being updated, even though end-of-life had been reached, but given the lack of updates for a long time, it seems clear that it is simply that the latest packages have stayed there.)
In any case, lpr without a printer name works fine on my intrepid machine, so I'll go ahead and close this.
Just "lpr" by itself produces some more error output too:
kchen@scyther:~$ lpr
Traceback (most recent call last):
AttributeError?: 'module' object has no attribute 'Lookup'
Error in sys.excepthook:
Traceback (most recent call last):
IndexError?: list index out of range
Original exception was:
Traceback (most recent call last):
AttributeError?: 'module' object has no attribute 'Lookup'