hplip-3.16.11-r0 missing files/dependencies
Hi,
I am using alpine linux as the base of my cups print server docker
image. I have been trying to update my images, and have come across an
issue with the hplip package.
In my old working image I am using hplip-3.16.10-r0 and alpine:3.4. I
have tried building using apline:edge and encountered the same error
I first noticed and error in the CUPS GUI on one of my HP Printers error read “file /usr/lib/cups/filter/hpps not available: no such file or directory”
Initially I though that this may have been a permissions issue, but I found that the file was indeed missing. So I downloaded the source code for hplip and copied the hpps file from there into my image. Now sending a test job through CUPS failed with an error “Filter failed”.
Looking into this a bit further I found that this is a python script, and there was no python installed. So I took a look at the hplip git repo and found this commit http://git.alpinelinux.org/cgit/aports/commit/testing/hplip?id=abfd2e4f147bb0a0717b9568f205d583ab60ebce that seems to have removed all the python dependencies. To get things working I tried installing python and manually executing the hpps file. Which failed with:
Traceback (most recent call last):
File “./hpps”, line 91, in
bug(“Error importing HPLIP modules:%s s\n" (pid, e))
File ”./hpps“, line 56, in bug
log.stderr(”ERROR: s" m)
NameError: global name ‘log’ is not defined
After a bit more digging around I have found that 3.16.10-r0 had quite a few files (which seem to be the missing python modules) in /usr/share/hplip and in 3.16.11-r0 the directory is empty.
Attached is a docker file that will replicate the issue
(from redmine: issue id 6990, created on 2017-03-08)
- Uploads:
- DockerFile-Test DockerFile to replicate the issue